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>
This commit is contained in:
Masashi Honma 2017-11-10 05:13:21 +09:00 committed by Jouni Malinen
parent 878723b920
commit 4109555ef7

View 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)); group = EC_GROUP_new_by_curve_name(OBJ_txt2nid(curve->name));
if (!group) if (!group)
return NULL; return -1;
ctx = BN_CTX_new(); ctx = BN_CTX_new();
point = EC_POINT_new(group); point = EC_POINT_new(group);