Source-Changes-HG archive

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

[src/ipsec-tools-0_8-branch]: src/crypto/dist/ipsec-tools/src/racoon From Pau...



details:   https://anonhg.NetBSD.org/src/rev/b9be5194c796
branches:  ipsec-tools-0_8-branch
changeset: 763345:b9be5194c796
user:      tteras <tteras%NetBSD.org@localhost>
date:      Tue Jun 18 05:40:36 2013 +0000

description:
>From Paul Barker: Remove redundant memset after calloc that caused compile
failures with gcc 4.8 due to error: argument to 'sizeof' in 'memset' call
is the same expression as the destination; did you mean to dereference.

diffstat:

 crypto/dist/ipsec-tools/src/racoon/ipsec_doi.c |  3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diffs (17 lines):

diff -r 813846718448 -r b9be5194c796 crypto/dist/ipsec-tools/src/racoon/ipsec_doi.c
--- a/crypto/dist/ipsec-tools/src/racoon/ipsec_doi.c    Mon Jun 03 05:49:59 2013 +0000
+++ b/crypto/dist/ipsec-tools/src/racoon/ipsec_doi.c    Tue Jun 18 05:40:36 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ipsec_doi.c,v 1.46 2010/12/14 17:57:31 tteras Exp $    */
+/*     $NetBSD: ipsec_doi.c,v 1.46.4.1 2013/06/18 05:40:36 tteras Exp $        */
 
 /* Id: ipsec_doi.c,v 1.55 2006/08/17 09:20:41 vanhu Exp */
 
@@ -1183,7 +1183,6 @@
                        "failed to get buffer.\n");
                goto bad;
        }
-       memset(pair, 0, sizeof(pair));
 
        bp = (caddr_t)(sab + 1);
        tlen = sa->l - sizeof(*sab);



Home | Main Index | Thread Index | Old Index