Skip to content

Commit

Permalink
Add the address family when manually constructing IPv4 addresses in e…
Browse files Browse the repository at this point in the history
…apol_test on Windows.

Otherwise other functions fail miserably.
Signed-off-by: Stefan Paetow <[email protected]>

Signed-off-by: Stefan Paetow <[email protected]>
  • Loading branch information
spaetow committed Mar 9, 2021
1 parent e54110b commit fa5ba40
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions eapol_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -1025,6 +1025,7 @@ static void wpa_init_conf(struct eapol_test_data *e,
*pos++ = a[1];
*pos++ = a[2];
*pos++ = a[3];
as->addr.af = AF_INET;
}
#else /* CONFIG_NATIVE_WINDOWS or CONFIG_ANSI_C_EXTRA */
if (hostapd_parse_ip_addr(authsrv, &as->addr) < 0) {
Expand Down

0 comments on commit fa5ba40

Please sign in to comment.