aboutsummaryrefslogtreecommitdiff
path: root/hs20
diff options
context:
space:
mode:
authorDmitry Shmidt <dimitrysh@google.com>2016-11-09 13:43:31 -0800
committerDmitry Shmidt <dimitrysh@google.com>2016-11-09 13:43:31 -0800
commitfe31a9a8fff325bfddbf06fc3e9edaf480824bee (patch)
treec01b593cafd2be0791365995d50baf84c6ea1591 /hs20
parentc15e6e519159228b25956b5005ccdc15043e5121 (diff)
downloadwpa_supplicant_8-fe31a9a8fff325bfddbf06fc3e9edaf480824bee.tar.gz
Revert "Cumulative patch from commit 4ec1fd8e42bad9390f14a58225b6e5f6fb691950"
This reverts commit 78a5dac804c22aa6e4ec8226a864d3b0d6ccddbb. Test: None
Diffstat (limited to 'hs20')
-rw-r--r--hs20/server/spp_server.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/hs20/server/spp_server.c b/hs20/server/spp_server.c
index 51c1d963..33e3fa10 100644
--- a/hs20/server/spp_server.c
+++ b/hs20/server/spp_server.c
@@ -1823,8 +1823,10 @@ static xml_node_t * hs20_spp_post_dev_data(struct hs20_svc *ctx,
}
if (strcasecmp(req_reason, "User input completed") == 0) {
- db_add_session_devinfo(ctx, session_id, devinfo);
- db_add_session_devdetail(ctx, session_id, devdetail);
+ if (devinfo)
+ db_add_session_devinfo(ctx, session_id, devinfo);
+ if (devdetail)
+ db_add_session_devdetail(ctx, session_id, devdetail);
ret = hs20_user_input_complete(ctx, user, realm, dmacc,
session_id);
hs20_eventlog_node(ctx, user, realm, session_id,