Browse Source

Avoid using undefined value in generate_stateless_cookie_callback

Reviewed-by: Paul Dale <pauli@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/16384)
master^2
Bernd Edlinger 2 months ago
committed by Tomas Mraz
parent
commit
06447b58b2
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      apps/lib/s_cb.c

+ 2
- 1
apps/lib/s_cb.c View File

@ -823,7 +823,8 @@ int generate_cookie_callback(SSL *ssl, unsigned char *cookie,
size_t temp = 0;
int res = generate_stateless_cookie_callback(ssl, cookie, &temp);
*cookie_len = (unsigned int)temp;
if (res != 0)
*cookie_len = (unsigned int)temp;
return res;
}


Loading…
Cancel
Save