Don't use NULL-pointer :-/
This commit is contained in:
parent
38424743ce
commit
bdc98ffba9
@ -97,6 +97,7 @@ my %table=(
|
|||||||
"debug-ben-debug", "gcc:-DBN_DEBUG -DREF_CHECK -DCRYPTO_MDEBUG -g3 -O2 -pedantic -Wall -Wshadow -Werror -pipe:(unknown):::::",
|
"debug-ben-debug", "gcc:-DBN_DEBUG -DREF_CHECK -DCRYPTO_MDEBUG -g3 -O2 -pedantic -Wall -Wshadow -Werror -pipe:(unknown):::::",
|
||||||
"debug-ben-strict", "gcc:-DBN_DEBUG -DREF_CHECK -DCRYPTO_MDEBUG -DCONST_STRICT -O2 -Wall -Wshadow -Werror -Wpointer-arith -Wcast-qual -Wwrite-strings -pipe:(unknown):::::",
|
"debug-ben-strict", "gcc:-DBN_DEBUG -DREF_CHECK -DCRYPTO_MDEBUG -DCONST_STRICT -O2 -Wall -Wshadow -Werror -Wpointer-arith -Wcast-qual -Wwrite-strings -pipe:(unknown):::::",
|
||||||
"debug-rse","cc:-DTERMIOS -DL_ENDIAN -pipe -O -g -ggdb3 -Wall:(unknown)::BN_LLONG $x86_gcc_des $x86_gcc_opts:$x86_elf_asm",
|
"debug-rse","cc:-DTERMIOS -DL_ENDIAN -pipe -O -g -ggdb3 -Wall:(unknown)::BN_LLONG $x86_gcc_des $x86_gcc_opts:$x86_elf_asm",
|
||||||
|
"debug-bodo", "gcc:-DL_ENDIAN -O3 -g -m486 -Wall:-D_REENTRANT::BN_LLONG $x86_gcc_des $x86_gcc_opts:$x86_elf_asm",
|
||||||
"dist", "cc:-O:(unknown):::::",
|
"dist", "cc:-O:(unknown):::::",
|
||||||
|
|
||||||
# Basic configs that should work on any box
|
# Basic configs that should work on any box
|
||||||
|
@ -203,6 +203,7 @@ int ssl_get_prev_session(SSL *s, unsigned char *session_id, int len)
|
|||||||
{
|
{
|
||||||
CRYPTO_r_lock(CRYPTO_LOCK_SSL_CTX);
|
CRYPTO_r_lock(CRYPTO_LOCK_SSL_CTX);
|
||||||
ret=(SSL_SESSION *)lh_retrieve(s->ctx->sessions,(char *)&data);
|
ret=(SSL_SESSION *)lh_retrieve(s->ctx->sessions,(char *)&data);
|
||||||
|
if (ret != NULL)
|
||||||
/* don't allow other threads to steal it: */
|
/* don't allow other threads to steal it: */
|
||||||
CRYPTO_add(&ret->references,1,CRYPTO_LOCK_SSL_SESSION);
|
CRYPTO_add(&ret->references,1,CRYPTO_LOCK_SSL_SESSION);
|
||||||
CRYPTO_r_unlock(CRYPTO_LOCK_SSL_CTX);
|
CRYPTO_r_unlock(CRYPTO_LOCK_SSL_CTX);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user