diff options
author | Hans-Joerg Hoexer <hshoexer@cvs.openbsd.org> | 2006-06-17 10:06:22 +0000 |
---|---|---|
committer | Hans-Joerg Hoexer <hshoexer@cvs.openbsd.org> | 2006-06-17 10:06:22 +0000 |
commit | 5d5fb0298f544f6b2c753784241c8ff3ce16a992 (patch) | |
tree | d15830e0c467384de81171a26475dbb68f37a466 | |
parent | ae509580c4b1b8aede0b1d31ad0ef6cda480a7f0 (diff) |
Do not leak file descriptor in error path. From Andrey Matveev
<evol at online dot ptt dot ru>, thanks!
-rw-r--r-- | sbin/isakmpd/policy.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sbin/isakmpd/policy.c b/sbin/isakmpd/policy.c index 0d371bc8f81..1b8bd77de96 100644 --- a/sbin/isakmpd/policy.c +++ b/sbin/isakmpd/policy.c @@ -1,4 +1,4 @@ -/* $OpenBSD: policy.c,v 1.87 2005/11/14 23:25:11 deraadt Exp $ */ +/* $OpenBSD: policy.c,v 1.88 2006/06/17 10:06:21 hshoexer Exp $ */ /* $EOM: policy.c,v 1.49 2000/10/24 13:33:39 niklas Exp $ */ /* @@ -2200,6 +2200,7 @@ keynote_cert_obtain(u_int8_t *id, size_t id_len, void *data, u_int8_t **cert, log_error("keynote_cert_obtain: failed to allocate %lu bytes", (unsigned long)size); free(file); + close(fd); return 0; } |