diff options
author | Hans-Joerg Hoexer <hshoexer@cvs.openbsd.org> | 2006-12-05 15:01:01 +0000 |
---|---|---|
committer | Hans-Joerg Hoexer <hshoexer@cvs.openbsd.org> | 2006-12-05 15:01:01 +0000 |
commit | 4908fe2c7e4a596aa9c53fa806fe7b1f7695990d (patch) | |
tree | 673df875721616fa5f76aeebcac9f04b7703006d | |
parent | 76fb77153502ac4d25745952f9b5cd3eb2520f6e (diff) |
plug memleak, noticed by jesus@mxtelecom.com
ok moritz@, tested by jesus@mxtelecom.com (thanks!)
-rw-r--r-- | sbin/isakmpd/message.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/isakmpd/message.c b/sbin/isakmpd/message.c index e19154eddd3..a077171021d 100644 --- a/sbin/isakmpd/message.c +++ b/sbin/isakmpd/message.c @@ -1,4 +1,4 @@ -/* $OpenBSD: message.c,v 1.122 2006/12/05 13:27:12 moritz Exp $ */ +/* $OpenBSD: message.c,v 1.123 2006/12/05 15:01:00 hshoexer Exp $ */ /* $EOM: message.c,v 1.156 2000/10/10 12:36:39 provos Exp $ */ /* @@ -920,7 +920,7 @@ message_validate_notify(struct message *msg, struct payload *p) memcmp(p->p + ISAKMP_NOTIFY_SPI_OFF, msg->isakmp_sa->cookies, ISAKMP_HDR_COOKIES_LEN) != 0) { log_print("message_validate_notify: bad cookies"); - message_drop(msg, ISAKMP_NOTIFY_INVALID_SPI, 0, 1, 0); + message_drop(msg, ISAKMP_NOTIFY_INVALID_SPI, 0, 1, 1); return -1; } |