diff options
author | Jouni Malinen <j@w1.fi> | 2011-10-23 09:33:17 (GMT) |
---|---|---|
committer | Jouni Malinen <j@w1.fi> | 2011-10-23 09:33:17 (GMT) |
commit | 2683690d9139b595607523cc87b16858ec785b2a (patch) | |
tree | ca97e60fd38c8387c136c96caff66af94159fb21 /src/ap/wpa_auth_glue.c | |
parent | b832d34c481c61e168a4628ba6f480748dd763b1 (diff) | |
download | hostap-2683690d9139b595607523cc87b16858ec785b2a.zip hostap-2683690d9139b595607523cc87b16858ec785b2a.tar.gz hostap-2683690d9139b595607523cc87b16858ec785b2a.tar.bz2 |
Fix hostapd_wpa_auth_send_ether() return value
This was not currently used for anything, but better return the correct
value instead of hardcoded -1.
Diffstat (limited to 'src/ap/wpa_auth_glue.c')
-rw-r--r-- | src/ap/wpa_auth_glue.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ap/wpa_auth_glue.c b/src/ap/wpa_auth_glue.c index 0e3cb31..7b60bc7 100644 --- a/src/ap/wpa_auth_glue.c +++ b/src/ap/wpa_auth_glue.c @@ -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; } |