[Fix] NULL dereferencing when ap is already NULL. 75/93675/1
authorNishant Chaprana <n.chaprana@samsung.com>
Tue, 25 Oct 2016 07:30:50 +0000 (13:00 +0530)
committerNishant Chaprana <n.chaprana@samsung.com>
Tue, 25 Oct 2016 07:30:50 +0000 (13:00 +0530)
Change-Id: If1a3596452c442af9119425afcce63e535adbf9c
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
packaging/ug-setting-wifidirect-efl.spec
popup-wifidirect/src/wfd-app-popup-view.c

index fe45c21..fdbf2f8 100644 (file)
@@ -1,6 +1,6 @@
 Name:       ug-setting-wifidirect-efl
 Summary:    Wi-Fi Direct setting UI gadget
-Version:    1.11.79
+Version:    1.11.80
 Release:    1
 Group:      Applications/Network
 License:    Flora-1.1
index b6e8ff2..c7e4b02 100755 (executable)
@@ -521,7 +521,8 @@ static Eina_Bool _keypad_popup_timer_cb(void *data)
 
        Evas_Object *label = (Evas_Object*) data;
        wfd_appdata_t *ad = wfd_get_appdata();
-       wfd_connection_info_s *connection = ad->connection;
+       wfd_connection_info_s *connection = NULL;
+
        WFD_RETV_IF(NULL == ad, FALSE, "NULL parameters(ad)\n");
        WFD_RETV_IF(NULL == label, FALSE, "NULL parameters(label)\n");
        if (NULL == ad->popup) {
@@ -529,6 +530,8 @@ static Eina_Bool _keypad_popup_timer_cb(void *data)
                return ECORE_CALLBACK_CANCEL;
        }
 
+       connection = ad->connection;
+
        keypad_popup_timeout--;
 
        if (keypad_popup_timeout > 0) {