aboutsummaryrefslogtreecommitdiffstats
path: root/hs20
diff options
context:
space:
mode:
authorNishant Chaprana <n.chaprana@samsung.com>2015-06-23 12:34:40 (GMT)
committerJouni Malinen <j@w1.fi>2015-06-23 15:51:41 (GMT)
commit59bae7463a1a9680b7a8bd3fff1271f6c2b823c0 (patch)
treed885c5d86f8010b67ae3d59cfc5e87d6d7f6e791 /hs20
parentc5ca73d1f766cfa5bc507a8aa58cddcc3a7041d8 (diff)
downloadhostap-59bae7463a1a9680b7a8bd3fff1271f6c2b823c0.zip
hostap-59bae7463a1a9680b7a8bd3fff1271f6c2b823c0.tar.gz
hostap-59bae7463a1a9680b7a8bd3fff1271f6c2b823c0.tar.bz2
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>
Diffstat (limited to 'hs20')
-rw-r--r--hs20/client/osu_client.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/hs20/client/osu_client.c b/hs20/client/osu_client.c
index 478d940..0315f7b 100644
--- a/hs20/client/osu_client.c
+++ b/hs20/client/osu_client.c
@@ -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 */