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.diff -r1.48 -r1.49 src/crypto/dist/ipsec-tools/src/racoon/ipsec_doi.c
(tteras)
--- src/crypto/dist/ipsec-tools/src/racoon/ipsec_doi.c 2012/11/29 15:31:25 1.48
+++ src/crypto/dist/ipsec-tools/src/racoon/ipsec_doi.c 2013/06/18 05:39:50 1.49
@@ -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 @@
"failed to get buffer.\n");
goto bad;
}
- memset(pair, 0, sizeof(pair));
bp = (caddr_t)(sab + 1);
tlen = sa->l - sizeof(*sab);