]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Fix hostapd_sta_add() call to use NULL as the pointer instead of 0
authorJouni Malinen <jouni@qca.qualcomm.com>
Thu, 23 Jun 2016 10:14:17 +0000 (13:14 +0300)
committerJouni Malinen <j@w1.fi>
Thu, 23 Jun 2016 10:14:17 +0000 (13:14 +0300)
Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
src/ap/ieee802_11.c

index f6fca67100f6570cdf2d47f509ea98015d2c4d80..98601a831a1f01353fe453759e16193172597a03 100644 (file)
@@ -1277,7 +1277,7 @@ static void handle_auth(struct hostapd_data *hapd,
                sta->flags &= ~(WLAN_STA_ASSOC | WLAN_STA_AUTH |
                                WLAN_STA_AUTHORIZED);
 
-               if (hostapd_sta_add(hapd, sta->addr, 0, 0, 0, 0, 0,
+               if (hostapd_sta_add(hapd, sta->addr, 0, 0, NULL, 0, 0,
                                    NULL, NULL, sta->flags, 0, 0, 0, 0)) {
                        hostapd_logger(hapd, sta->addr,
                                       HOSTAPD_MODULE_IEEE80211,