diff --git a/src/tls.c b/src/tls.c index 4c77b2115..05d77a0ba 100644 --- a/src/tls.c +++ b/src/tls.c @@ -2904,7 +2904,7 @@ static int TLSX_PointFormat_Append(PointFormat* list, byte format, void* heap) { int ret = BAD_FUNC_ARG; - while (1) { + while (list) { if (list->format == format) { ret = 0; /* format already in use */ break;