]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Fix hostapd_wpa_auth_send_ether() return value
authorJouni Malinen <j@w1.fi>
Sun, 23 Oct 2011 09:33:17 +0000 (12:33 +0300)
committerJouni Malinen <j@w1.fi>
Sun, 23 Oct 2011 09:33:17 +0000 (12:33 +0300)
This was not currently used for anything, but better return the correct
value instead of hardcoded -1.

src/ap/wpa_auth_glue.c

index 0e3cb31fbff3fca22d810f5d5e65a991e35a3cb1..7b60bc780bb9f415ac4592bf39cdf22e0a5abfe8 100644 (file)
@@ -384,7 +384,7 @@ static int hostapd_wpa_auth_send_ether(void *ctx, const u8 *dst, u16 proto,
        ret = l2_packet_send(hapd->l2, dst, proto, (u8 *) buf,
                             sizeof(*buf) + data_len);
        os_free(buf);
-       return -1;
+       return ret;
 }