Skip to content

Commit a9ad518

Browse files
committed
tls13: remove dead code in SetupOcspResp csr assignment
1 parent 303401b commit a9ad518

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/tls13.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8709,8 +8709,7 @@ static int SetupOcspResp(WOLFSSL* ssl)
87098709
extension = TLSX_Find(ssl->extensions, TLSX_STATUS_REQUEST);
87108710
if (extension == NULL)
87118711
return 0; /* peer didn't signal ocsp support */
8712-
csr = extension ?
8713-
(CertificateStatusRequest*)extension->data : NULL;
8712+
csr = (CertificateStatusRequest*)extension->data;
87148713
if (csr == NULL)
87158714
return MEMORY_ERROR;
87168715

0 commit comments

Comments
 (0)