mirror of
https://github.com/NLnetLabs/unbound.git
synced 2026-01-08 07:49:35 -05:00
- Fix #627: SSL_CTX_load_verify_locations return code not properly
checked. git-svn-id: file:///svn/unbound/trunk@3271 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
parent
e8fa4a9aff
commit
fcfbfe4030
2 changed files with 5 additions and 1 deletions
|
|
@ -1,3 +1,7 @@
|
|||
17 November 2014: Wouter
|
||||
- Fix #627: SSL_CTX_load_verify_locations return code not properly
|
||||
checked.
|
||||
|
||||
14 November 2014: Wouter
|
||||
- parser with bison 2.7
|
||||
|
||||
|
|
|
|||
|
|
@ -699,7 +699,7 @@ void* connect_sslctx_create(char* key, char* pem, char* verifypem)
|
|||
}
|
||||
}
|
||||
if(verifypem && verifypem[0]) {
|
||||
if(!SSL_CTX_load_verify_locations(ctx, verifypem, NULL) != 1) {
|
||||
if(!SSL_CTX_load_verify_locations(ctx, verifypem, NULL)) {
|
||||
log_crypto_err("error in SSL_CTX verify");
|
||||
SSL_CTX_free(ctx);
|
||||
return NULL;
|
||||
|
|
|
|||
Loading…
Reference in a new issue