]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
DPP: Fix compiler warning of testing code
authorMasashi Honma <masashi.honma@gmail.com>
Thu, 9 Nov 2017 20:13:21 +0000 (05:13 +0900)
committerJouni Malinen <j@w1.fi>
Tue, 14 Nov 2017 16:22:58 +0000 (18:22 +0200)
../src/common/dpp.c: In function 'dpp_test_gen_invalid_key':
../src/common/dpp.c:5531:10: warning: return makes integer from pointer without a cast [-Wint-conversion]
   return NULL;
          ^

Signed-off-by: Masashi Honma <masashi.honma@gmail.com>
src/common/dpp.c

index 38ce4a587a2be744debd20416c2171eaf0952023..ba9e3a9f107d7a7695342440982eb9c87b62e1b6 100644 (file)
@@ -5750,7 +5750,7 @@ static int dpp_test_gen_invalid_key(struct wpabuf *msg,
 
        group = EC_GROUP_new_by_curve_name(OBJ_txt2nid(curve->name));
        if (!group)
-               return NULL;
+               return -1;
 
        ctx = BN_CTX_new();
        point = EC_POINT_new(group);