OSDN Git Service

clear wfd_dev_info_hex before use
authorIrfan Sheriff <isheriff@google.com>
Tue, 11 Sep 2012 15:58:24 +0000 (08:58 -0700)
committerIrfan Sheriff <isheriff@google.com>
Tue, 11 Sep 2012 15:58:24 +0000 (08:58 -0700)
Change-Id: Ic5cdb4df220834faf9e7da5cc1cc0a4191e6abd1

wpa_supplicant/p2p_supplicant.c

index 6dbfcdf..94efd72 100644 (file)
@@ -1189,6 +1189,7 @@ void wpas_dev_found(void *ctx, const u8 *addr,
        char devtype[WPS_DEV_TYPE_BUFSIZE];
 #define WFD_DEV_INFO_SIZE 9
        char wfd_dev_info_hex[2 * WFD_DEV_INFO_SIZE + 1];
+       os_memset(wfd_dev_info_hex, 0, sizeof(wfd_dev_info_hex));
 
 #ifdef CONFIG_WIFI_DISPLAY
        if (info->wfd_subelems) {