diff options
| author | Vinit Deshpande <vinitd@google.com> | 2015-03-12 18:21:11 -0700 |
|---|---|---|
| committer | Vinit Deshpande <vinitd@google.com> | 2015-03-12 18:21:11 -0700 |
| commit | 173dd07f274295d61f11f20994be69af1322482c (patch) | |
| tree | 6c4ba7b40cb4a95910328bb915d055fe88f25742 /hs20 | |
| parent | a94aab6a6fe3d334ae65296da6883cc2b6640db9 (diff) | |
| parent | 4dd28dc25895165566a1c8a9cac7bcd755ff8fe3 (diff) | |
| download | android_external_wpa_supplicant_8-173dd07f274295d61f11f20994be69af1322482c.tar.gz android_external_wpa_supplicant_8-173dd07f274295d61f11f20994be69af1322482c.tar.bz2 android_external_wpa_supplicant_8-173dd07f274295d61f11f20994be69af1322482c.zip | |
am "Cumulative patch from commit 00033a0903f69b2f0e0c048840bff059f5a3eab9"
merged from goog/mirror-m-wireless-internal-release
4dd28dc Cumulative patch from commit 00033a0903f69b2f0e0c048840bff059f5a3eab9
Diffstat (limited to 'hs20')
| -rw-r--r-- | hs20/client/oma_dm_client.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/hs20/client/oma_dm_client.c b/hs20/client/oma_dm_client.c index 6eaeeb47..5854b726 100644 --- a/hs20/client/oma_dm_client.c +++ b/hs20/client/oma_dm_client.c @@ -772,6 +772,11 @@ static int oma_dm_replace(struct hs20_osu_client *ctx, xml_node_t *replace, if (node) { char *type; type = xml_node_get_text(ctx->xml, node); + if (type == NULL) { + wpa_printf(MSG_INFO, "Could not find type text"); + os_free(locuri); + return DM_RESP_BAD_REQUEST; + } use_tnds = node && os_strstr(type, "application/vnd.syncml.dmtnds+xml"); } |
