Browse Source

DPP: Fix compiler warning of testing code

../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>
Masashi Honma 7 years ago
parent
commit
4109555ef7
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/common/dpp.c

+ 1 - 1
src/common/dpp.c

@@ -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);