Skip to content

Commit 80f971c

Browse files
committed
clears dereference before null check
1 parent 682b628 commit 80f971c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/tls.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14986,7 +14986,7 @@ static int TLSX_GetSize(TLSX* list, byte* semaphore, byte msgType,
1498614986
case TLSX_CERTIFICATE_AUTHORITIES: {
1498714987
word16 canSz = CAN_GET_SIZE(extension->data);
1498814988
/* 0 on non-empty list means 16-bit overflow. */
14989-
if (canSz == 0 && extension->data != NULL) {
14989+
if (canSz == 0) {
1499014990
ret = LENGTH_ERROR;
1499114991
break;
1499214992
}

0 commit comments

Comments
 (0)