Revert "[wpa_supplicant] Cumulative patch from c4e90da6d"
This reverts commit 39bc25d3a79c1375de430a7918d949c1a86f70c6.
Test: Compilation
Change-Id: Iae7670429466958911b5296cb1359bceecc0b03e
Exempt-From-Owner-Approval: Revert since it's breaking the build
diff --git a/src/common/gas_server.c b/src/common/gas_server.c
index ca46758..b258675 100644
--- a/src/common/gas_server.c
+++ b/src/common/gas_server.c
@@ -97,10 +97,8 @@
return;
response = os_zalloc(sizeof(*response));
- if (!response) {
- wpabuf_free(query_resp);
+ if (!response)
return;
- }
wpa_printf(MSG_DEBUG, "DPP: Allocated GAS response @%p", response);
response->freq = freq;
response->handler = handler;
@@ -121,7 +119,6 @@
handler->adv_proto_id_len +
resp_frag_len);
if (!resp) {
- wpabuf_free(query_resp);
gas_server_free_response(response);
return;
}
@@ -260,7 +257,6 @@
handler->adv_proto_id_len +
resp_frag_len);
if (!resp) {
- dl_list_del(&response->list);
gas_server_free_response(response);
return;
}