]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
WPS: Fix wps_validate_credential() argument type
authorJouni Malinen <j@w1.fi>
Mon, 24 Dec 2018 09:12:53 +0000 (11:12 +0200)
committerJouni Malinen <j@w1.fi>
Mon, 24 Dec 2018 09:12:53 +0000 (11:12 +0200)
Newer gcc complained about the mismatching len[] argument type. Silence
that by using the correct type.

Signed-off-by: Jouni Malinen <j@w1.fi>
src/wps/wps_validate.c

index 267b565e47847d82b6af7eec5996f2cc60ade670..5c12bce2523976501564b677ddc08cf1376053ef 100644 (file)
@@ -1057,7 +1057,7 @@ static int wps_validate_cred(const u8 *cred, size_t len)
 }
 
 
-static int wps_validate_credential(const u8 *cred[], size_t len[], size_t num,
+static int wps_validate_credential(const u8 *cred[], u16 len[], size_t num,
                                   int mandatory)
 {
        size_t i;