Module Name: src
Committed By: martin
Date: Fri Jun 10 06:06:00 UTC 2022
Modified Files:
src/external/bsd/ipf/dist/tools: ipftest.c
Log Message:
PR 56874: avoid using uninitialized memory, patch from Tom Lane.
To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/external/bsd/ipf/dist/tools/ipftest.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/external/bsd/ipf/dist/tools/ipftest.c
diff -u src/external/bsd/ipf/dist/tools/ipftest.c:1.4 src/external/bsd/ipf/dist/tools/ipftest.c:1.5
--- src/external/bsd/ipf/dist/tools/ipftest.c:1.4 Sun Feb 4 08:19:42 2018
+++ src/external/bsd/ipf/dist/tools/ipftest.c Fri Jun 10 06:06:00 2022
@@ -1,4 +1,4 @@
-/* $NetBSD: ipftest.c,v 1.4 2018/02/04 08:19:42 mrg Exp $ */
+/* $NetBSD: ipftest.c,v 1.5 2022/06/10 06:06:00 martin Exp $ */
/*
* Copyright (C) 2012 by Darren Reed.
@@ -88,6 +88,7 @@ main(argc,argv)
ip_t *ip;
m = &mb;
+ memset(m, 0, sizeof(*m));
dir = 0;
dump = 0;
hlen = 0;