Dereference Null check : 1074421 1074417 1074423 1044429
Change-Id: Ibc19d8d80c54abd162bad520a7d06fbd94426957
Signed-off-by: Jung Jihoon <jh8801.jung@samsung.com>
void __nm_get_connected_bssid(char** connect_bssid)
{
- if (connect_bssid == NULL) {
- *connect_bssid = NULL;
+ if (connect_bssid == NULL)
return;
- }
*connect_bssid = g_strdup(connected_bssid);
return;
if (!(UAS_PRESENCE & wifi_detection_type))
break;
- if (!uas_cbs && !uas_cbs->device_detected_cb)
+ if (!uas_cbs || !uas_cbs->device_detected_cb)
break;
/* Send PRESENCE callback */
gboolean __arp_packet_callback()
{
- if (arp_data && arp_data->is_arp_init)
+ if (arp_data == NULL)
+ return false;
+
+ if (arp_data->is_arp_init)
clean_socket();
if (arp_data->arp_mac_count <= 0)
{
int ret;
- if (arp_data && arp_data->is_arp_init == 1) {
+ if (arp_data == NULL) {
+ UA_WIFI_ERR("arp_data is not initialized");
+ return UAS_STATUS_FAIL;
+ }
+
+ if (arp_data->is_arp_init == 1) {
UA_WIFI_ERR("Already initialized");
return UAS_STATUS_FAIL;
}