Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/crypto/dist/ipsec-tools/src/racoon Fix ticket SF#91: pass th...
details: https://anonhg.NetBSD.org/src/rev/aed2165f5cdb
branches: trunk
changeset: 433949:aed2165f5cdb
user: maxv <maxv%NetBSD.org@localhost>
date: Sat Oct 13 15:17:45 2018 +0000
description:
Fix ticket SF#91: pass the correct size for tbuf.
diffstat:
crypto/dist/ipsec-tools/src/racoon/logger.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (25 lines):
diff -r 893456633b59 -r aed2165f5cdb crypto/dist/ipsec-tools/src/racoon/logger.c
--- a/crypto/dist/ipsec-tools/src/racoon/logger.c Sat Oct 13 15:08:51 2018 +0000
+++ b/crypto/dist/ipsec-tools/src/racoon/logger.c Sat Oct 13 15:17:45 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: logger.c,v 1.4 2006/09/09 16:22:09 manu Exp $ */
+/* $NetBSD: logger.c,v 1.5 2018/10/13 15:17:45 maxv Exp $ */
/* $KAME: logger.c,v 1.9 2002/09/03 14:37:03 itojun Exp $ */
@@ -79,13 +79,13 @@
}
memset(p->buf, 0, sizeof(char *) * siz);
- p->tbuf = (time_t *)racoon_malloc(sizeof(time_t *) * siz);
+ p->tbuf = (time_t *)racoon_malloc(sizeof(time_t) * siz);
if (p->tbuf == NULL) {
racoon_free(p->buf);
racoon_free(p);
return NULL;
}
- memset(p->tbuf, 0, sizeof(time_t *) * siz);
+ memset(p->tbuf, 0, sizeof(time_t) * siz);
p->siz = siz;
if (fname)
Home |
Main Index |
Thread Index |
Old Index