Correct a mixup of return values
This commit is contained in:
parent
3074ade0cb
commit
c0ec5de6db
1 changed files with 2 additions and 2 deletions
|
@ -1063,9 +1063,9 @@ int SSL_COMP_add_compression_method(int id, COMP_METHOD *cm)
|
||||||
if ((sk == NULL) || !sk_SSL_COMP_push(sk,comp))
|
if ((sk == NULL) || !sk_SSL_COMP_push(sk,comp))
|
||||||
{
|
{
|
||||||
SSLerr(SSL_F_SSL_COMP_ADD_COMPRESSION_METHOD,ERR_R_MALLOC_FAILURE);
|
SSLerr(SSL_F_SSL_COMP_ADD_COMPRESSION_METHOD,ERR_R_MALLOC_FAILURE);
|
||||||
return(0);
|
return(1);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
return(1);
|
return(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue