]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
DPP: Fix error return value in dpp_auth_conf_rx()
authorJouni Malinen <jouni@qca.qualcomm.com>
Thu, 23 Nov 2017 18:20:39 +0000 (20:20 +0200)
committerJouni Malinen <j@w1.fi>
Thu, 23 Nov 2017 18:20:39 +0000 (20:20 +0200)
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 <jouni@qca.qualcomm.com>
src/common/dpp.c

index e7db569b39560dc5c73e85f03f40b3c9cad5ce03..987c35e66e8cacb78592fcfcfc69f70e257c1308 100644 (file)
@@ -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;