Module Name: src
Committed By: christos
Date: Wed Mar 26 00:12:49 UTC 2025
Modified Files:
src/external/bsd/blocklist/bin: blocklistd.c
Log Message:
GitHub issue #1: jlduran: Initialize dbi so that the debug print does not
print junk.
To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 src/external/bsd/blocklist/bin/blocklistd.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/blocklist/bin/blocklistd.c
diff -u src/external/bsd/blocklist/bin/blocklistd.c:1.8 src/external/bsd/blocklist/bin/blocklistd.c:1.9
--- src/external/bsd/blocklist/bin/blocklistd.c:1.8 Tue Feb 11 12:48:30 2025
+++ src/external/bsd/blocklist/bin/blocklistd.c Tue Mar 25 20:12:49 2025
@@ -1,4 +1,4 @@
-/* $NetBSD: blocklistd.c,v 1.8 2025/02/11 17:48:30 christos Exp $ */
+/* $NetBSD: blocklistd.c,v 1.9 2025/03/26 00:12:49 christos Exp $ */
/*-
* Copyright (c) 2015 The NetBSD Foundation, Inc.
@@ -35,7 +35,7 @@
#ifdef HAVE_SYS_CDEFS_H
#include <sys/cdefs.h>
#endif
-__RCSID("$NetBSD: blocklistd.c,v 1.8 2025/02/11 17:48:30 christos Exp $");
+__RCSID("$NetBSD: blocklistd.c,v 1.9 2025/03/26 00:12:49 christos Exp $");
#include <sys/types.h>
#include <sys/socket.h>
@@ -178,6 +178,7 @@ process(bl_t bl)
struct dbinfo dbi;
struct timespec ts;
+ memset(&dbi, 0, sizeof(dbi));
if (clock_gettime(CLOCK_REALTIME, &ts) == -1) {
(*lfun)(LOG_ERR, "clock_gettime failed (%m)");
return;