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:
parent
878723b920
commit
4109555ef7
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue