From 88d04e5eeb595ec88108fd326c4ed1372ae62af5 Mon Sep 17 00:00:00 2001 From: David Garske Date: Wed, 22 Apr 2020 10:15:52 -0700 Subject: [PATCH] Fix for NULL == NULL test case in `test_wolfSSL_EC_get_builtin_curves`. --- tests/api.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/api.c b/tests/api.c index 8b1585478..dba80ea06 100644 --- a/tests/api.c +++ b/tests/api.c @@ -28688,7 +28688,8 @@ static void test_wolfSSL_EC_get_builtin_curves(void) for (i = 0; i < crv_len; i++) { - AssertStrEQ(OBJ_nid2sn(curves[i].nid), curves[i].comment); + if (curves[i].comment != NULL) + AssertStrEQ(OBJ_nid2sn(curves[i].nid), curves[i].comment); } XFREE(curves, NULL, DYNAMIC_TYPE_TMP_BUFFER);