HS 2.0R2: Fix memory leak on error path in hs20-osu-client

fqdn was not freed before return in case the server uses an unsupported
location for the PPS MO in the addMO command.

Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
master
Nishant Chaprana 9 years ago committed by Jouni Malinen
parent c5ca73d1f7
commit 59bae7463a

@ -542,6 +542,7 @@ int hs20_add_pps_mo(struct hs20_osu_client *ctx, const char *uri,
uri);
write_result(ctx, "Unsupported location for addMO to "
"add PPS MO (extra directory): '%s'", uri);
free(fqdn);
return -1;
}
*pos = '\0'; /* remove trailing slash and PPS node name */

Loading…
Cancel
Save