Skip to content

Commit

Permalink
lib\x509\verify-high: Fix compilation with msvc /sdl.
Browse files Browse the repository at this point in the history
  • Loading branch information
Sibras committed Jun 29, 2024
1 parent 07a53d5 commit 546dbe1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/x509/verify-high.c
Original file line number Diff line number Diff line change
Expand Up @@ -1423,7 +1423,8 @@ int gnutls_x509_trust_list_verify_crt2(
}

/* Allocate extra for retrieved certificates. */
if (!INT_ADD_OK(cert_list_size, DEFAULT_MAX_VERIFY_DEPTH,
size_t size = DEFAULT_MAX_VERIFY_DEPTH;
if (!INT_ADD_OK(cert_list_size, size,
&cert_list_max_size))
return gnutls_assert_val(GNUTLS_E_INVALID_REQUEST);

Expand Down

0 comments on commit 546dbe1

Please sign in to comment.