From: Jouni Malinen Date: Thu, 23 Nov 2017 18:20:39 +0000 (+0200) Subject: DPP: Fix error return value in dpp_auth_conf_rx() X-Git-Tag: hostap_2_7~790 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=116454f460ae24ea68a69551a8fed94bb52da42d;p=thirdparty%2Fhostap.git DPP: Fix error return value in dpp_auth_conf_rx() Commit 03abb6b5416d472d473c7017802236f8397d0278 ('DPP: Reject unexpected Req/Resp message based on Auth/PKEX role') used incorrect type of error value (NULL vs. -1). Fix that. Signed-off-by: Jouni Malinen --- diff --git a/src/common/dpp.c b/src/common/dpp.c index e7db569b3..987c35e66 100644 --- a/src/common/dpp.c +++ b/src/common/dpp.c @@ -3665,7 +3665,7 @@ int dpp_auth_conf_rx(struct dpp_authentication *auth, const u8 *hdr, if (auth->initiator) { dpp_auth_fail(auth, "Unexpected Authentication Confirm"); - return NULL; + return -1; } auth->waiting_auth_conf = 0;