From: Masashi Honma Date: Thu, 9 Nov 2017 20:13:21 +0000 (+0900) Subject: DPP: Fix compiler warning of testing code X-Git-Tag: hostap_2_7~856 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4109555ef75e713cad0361d4cd69ff715e24bf7c;p=thirdparty%2Fhostap.git 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 --- diff --git a/src/common/dpp.c b/src/common/dpp.c index 38ce4a587..ba9e3a9f1 100644 --- a/src/common/dpp.c +++ b/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);