From 116454f460ae24ea68a69551a8fed94bb52da42d Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Thu, 23 Nov 2017 20:20:39 +0200 Subject: [PATCH] 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 --- src/common/dpp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;