diff --git a/wpa_supplicant/scan.c b/wpa_supplicant/scan.c index 770b28d22..1428d328a 100644 --- a/wpa_supplicant/scan.c +++ b/wpa_supplicant/scan.c @@ -132,6 +132,7 @@ static void int_array_concat(int **res, const int *a) if (n == NULL) { os_free(*res); *res = NULL; + return; } for (i = 0; i <= alen; i++) n[reslen + i] = a[i];