Source-Changes-HG archive

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

[src/trunk]: src/lib/libipsec clear malloc'ed memory. sync w/kame



details:   https://anonhg.NetBSD.org/src/rev/7b37f6a31561
branches:  trunk
changeset: 548452:7b37f6a31561
user:      itojun <itojun%NetBSD.org@localhost>
date:      Fri Jun 27 03:40:44 2003 +0000

description:
clear malloc'ed memory.  sync w/kame

diffstat:

 lib/libipsec/policy_parse.y |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (19 lines):

diff -r d9d1e0230676 -r 7b37f6a31561 lib/libipsec/policy_parse.y
--- a/lib/libipsec/policy_parse.y       Fri Jun 27 00:04:34 2003 +0000
+++ b/lib/libipsec/policy_parse.y       Fri Jun 27 03:40:44 2003 +0000
@@ -1,5 +1,5 @@
-/*     $NetBSD: policy_parse.y,v 1.8 2002/07/31 07:00:22 itojun Exp $  */
-/*     $KAME: policy_parse.y,v 1.10 2000/05/07 05:25:03 itojun Exp $   */
+/*     $NetBSD: policy_parse.y,v 1.9 2003/06/27 03:40:44 itojun Exp $  */
+/*     $KAME: policy_parse.y,v 1.14 2003/06/27 03:39:20 itojun Exp $   */
 
 /*
  * Copyright (C) 1995, 1996, 1997, 1998, and 1999 WIDE Project.
@@ -302,6 +302,7 @@
                __ipsec_errcode = EIPSEC_NO_BUFS;
                return -1;
        }
+       memset(pbuf, 0, tlen);
        p = (struct sadb_x_policy *)pbuf;
        p->sadb_x_policy_len = 0;       /* must update later */
        p->sadb_x_policy_exttype = SADB_X_EXT_POLICY;



Home | Main Index | Thread Index | Old Index