Skip to content

Commit 822e866

Browse files
ADieaigrr
authored andcommitted
Prevent WDT reset while processing the certificates
1 parent feed1ca commit 822e866

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ssl/tls1.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2108,6 +2108,8 @@ int process_certificate(SSL *ssl, X509_CTX **x509_ctx)
21082108
int i = 0;
21092109
offset += 2;
21102110

2111+
ax_wdt_feed();
2112+
21112113
PARANOIA_CHECK(pkt_size, total_cert_len + offset);
21122114

21132115
// record the start point for the second pass
@@ -2138,7 +2140,7 @@ int process_certificate(SSL *ssl, X509_CTX **x509_ctx)
21382140
offset++; /* skip empty char */
21392141
cert_size = (buf[offset]<<8) + buf[offset+1];
21402142
offset += 2;
2141-
2143+
ax_wdt_feed();
21422144
if (x509_new(&buf[offset], NULL, certs+num_certs))
21432145
{
21442146
ret = SSL_ERROR_BAD_CERTIFICATE;

0 commit comments

Comments
 (0)