Browse Source

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.
Jouni Malinen 13 years ago
parent
commit
2683690d91
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/ap/wpa_auth_glue.c

+ 1 - 1
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,
 	ret = l2_packet_send(hapd->l2, dst, proto, (u8 *) buf,
 			     sizeof(*buf) + data_len);
 			     sizeof(*buf) + data_len);
 	os_free(buf);
 	os_free(buf);
-	return -1;
+	return ret;
 }
 }