Module Name: src Committed By: maxv Date: Sat Oct 13 15:17:45 UTC 2018
Modified Files: src/crypto/dist/ipsec-tools/src/racoon: logger.c Log Message: Fix ticket SF#91: pass the correct size for tbuf. To generate a diff of this commit: cvs rdiff -u -r1.4 -r1.5 src/crypto/dist/ipsec-tools/src/racoon/logger.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/crypto/dist/ipsec-tools/src/racoon/logger.c diff -u src/crypto/dist/ipsec-tools/src/racoon/logger.c:1.4 src/crypto/dist/ipsec-tools/src/racoon/logger.c:1.5 --- src/crypto/dist/ipsec-tools/src/racoon/logger.c:1.4 Sat Sep 9 16:22:09 2006 +++ src/crypto/dist/ipsec-tools/src/racoon/logger.c Sat Oct 13 15:17:45 2018 @@ -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 @@ log_open(siz, fname) } 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)