Module Name: src
Committed By: christos
Date: Sun Mar 9 10:59:03 UTC 2025
Modified Files:
src/crypto/dist/ipsec-tools/src/racoon: cfparse.y
Log Message:
fix a bug caught by gcc: zero out the whole array.
To generate a diff of this commit:
cvs rdiff -u -r1.55 -r1.56 src/crypto/dist/ipsec-tools/src/racoon/cfparse.y
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/cfparse.y
diff -u src/crypto/dist/ipsec-tools/src/racoon/cfparse.y:1.55 src/crypto/dist/ipsec-tools/src/racoon/cfparse.y:1.56
--- src/crypto/dist/ipsec-tools/src/racoon/cfparse.y:1.55 Sat Mar 8 11:39:08 2025
+++ src/crypto/dist/ipsec-tools/src/racoon/cfparse.y Sun Mar 9 06:59:03 2025
@@ -1,4 +1,4 @@
-/* $NetBSD: cfparse.y,v 1.55 2025/03/08 16:39:08 christos Exp $ */
+/* $NetBSD: cfparse.y,v 1.56 2025/03/09 10:59:03 christos Exp $ */
/* Id: cfparse.y,v 1.66 2006/08/22 18:17:17 manubsd Exp */
@@ -2775,7 +2775,7 @@ set_isakmp_proposal(struct remoteconf *r
plog(LLV_DEBUG2, LOCATION, NULL,
"encklen=%d\n", s->encklen);
- memset(types, 0, ARRAYLEN(types));
+ memset(types, 0, sizeof(types));
types[algclass_isakmp_enc] = s->algclass[algclass_isakmp_enc];
types[algclass_isakmp_hash] = s->algclass[algclass_isakmp_hash];
types[algclass_isakmp_dh] = s->algclass[algclass_isakmp_dh];