Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/crypto/dist/kame/racoon don't touch free'ed memory. From: w...



details:   https://anonhg.NetBSD.org/src/rev/da3a21e652d3
branches:  trunk
changeset: 535969:da3a21e652d3
user:      itojun <itojun%NetBSD.org@localhost>
date:      Tue Sep 03 14:38:13 2002 +0000

description:
don't touch free'ed memory.  From: wang.zhong3%zte.com.cn@localhost, sync w/kame

diffstat:

 crypto/dist/kame/racoon/logger.c |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (13 lines):

diff -r 928fe92151d6 -r da3a21e652d3 crypto/dist/kame/racoon/logger.c
--- a/crypto/dist/kame/racoon/logger.c  Tue Sep 03 06:17:26 2002 +0000
+++ b/crypto/dist/kame/racoon/logger.c  Tue Sep 03 14:38:13 2002 +0000
@@ -77,8 +77,8 @@
 
        p->tbuf = (time_t *)racoon_malloc(sizeof(time_t *) * siz);
        if (p->tbuf == NULL) {
+               racoon_free(p->buf);
                racoon_free(p);
-               racoon_free(p->buf);
                return NULL;
        }
        memset(p->tbuf, 0, sizeof(time_t *) * siz);



Home | Main Index | Thread Index | Old Index