Module Name: src Committed By: tteras Date: Tue Jun 18 05:39:50 UTC 2013
Modified Files: src/crypto/dist/ipsec-tools/src/racoon: ipsec_doi.c Log Message: >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. To generate a diff of this commit: cvs rdiff -u -r1.48 -r1.49 src/crypto/dist/ipsec-tools/src/racoon/ipsec_doi.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/ipsec_doi.c diff -u src/crypto/dist/ipsec-tools/src/racoon/ipsec_doi.c:1.48 src/crypto/dist/ipsec-tools/src/racoon/ipsec_doi.c:1.49 --- src/crypto/dist/ipsec-tools/src/racoon/ipsec_doi.c:1.48 Thu Nov 29 15:31:25 2012 +++ src/crypto/dist/ipsec-tools/src/racoon/ipsec_doi.c Tue Jun 18 05:39:50 2013 @@ -1,4 +1,4 @@ -/* $NetBSD: ipsec_doi.c,v 1.48 2012/11/29 15:31:25 vanhu Exp $ */ +/* $NetBSD: ipsec_doi.c,v 1.49 2013/06/18 05:39:50 tteras Exp $ */ /* Id: ipsec_doi.c,v 1.55 2006/08/17 09:20:41 vanhu Exp */ @@ -1183,7 +1183,6 @@ get_proppair_and_doi_sit(sa, mode, doity "failed to get buffer.\n"); goto bad; } - memset(pair, 0, sizeof(pair)); bp = (caddr_t)(sab + 1); tlen = sa->l - sizeof(*sab);