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/811d7a8337ec
branches:  trunk
changeset: 836360:811d7a8337ec
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 5d54909caca2 -r 811d7a8337ec 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