mirror of
https://github.com/NLnetLabs/unbound.git
synced 2025-12-20 23:00:56 -05:00
- fix memory and fd leak after out-of-memory condition.
git-svn-id: file:///svn/unbound/trunk@2473 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
parent
63c07d13ce
commit
86c4c11ca2
2 changed files with 3 additions and 0 deletions
|
|
@ -428,6 +428,7 @@ int remote_accept_callback(struct comm_point* c, void* arg, int err,
|
||||||
n->ssl = SSL_new(rc->ctx);
|
n->ssl = SSL_new(rc->ctx);
|
||||||
if(!n->ssl) {
|
if(!n->ssl) {
|
||||||
log_crypto_err("could not SSL_new");
|
log_crypto_err("could not SSL_new");
|
||||||
|
comm_point_delete(n->c);
|
||||||
free(n);
|
free(n);
|
||||||
goto close_exit;
|
goto close_exit;
|
||||||
}
|
}
|
||||||
|
|
@ -436,6 +437,7 @@ int remote_accept_callback(struct comm_point* c, void* arg, int err,
|
||||||
if(!SSL_set_fd(n->ssl, newfd)) {
|
if(!SSL_set_fd(n->ssl, newfd)) {
|
||||||
log_crypto_err("could not SSL_set_fd");
|
log_crypto_err("could not SSL_set_fd");
|
||||||
SSL_free(n->ssl);
|
SSL_free(n->ssl);
|
||||||
|
comm_point_delete(n->c);
|
||||||
free(n);
|
free(n);
|
||||||
goto close_exit;
|
goto close_exit;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,7 @@
|
||||||
10 August 2011: Wouter
|
10 August 2011: Wouter
|
||||||
- Fix python site-packages path to /usr/lib64.
|
- Fix python site-packages path to /usr/lib64.
|
||||||
- updated patch from Tom.
|
- updated patch from Tom.
|
||||||
|
- fix memory and fd leak after out-of-memory condition.
|
||||||
|
|
||||||
9 August 2011: Wouter
|
9 August 2011: Wouter
|
||||||
- patch from Tom Hendrikx fixes load of python modules.
|
- patch from Tom Hendrikx fixes load of python modules.
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue