From 6e273f0a318cc132184d946a764e351f3ec182c9 Mon Sep 17 00:00:00 2001 From: Érico Rolim Date: Sun, 16 Aug 2020 15:12:45 -0300 Subject: svlogd.c: Initialize all fields of sockaddr_in. http://skarnet.org/cgi-bin/archive.cgi?2:mss:1163:201602:gpiglpbjdemlioaeabbn --- src/svlogd.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/svlogd.c b/src/svlogd.c index 033f5f6..66d4006 100644 --- a/src/svlogd.c +++ b/src/svlogd.c @@ -430,6 +430,7 @@ unsigned int logdir_open(struct logdir *ld, const char *fn) { ld->name =(char*)fn; ld->ppid =0; ld->match ='+'; + ld->udpaddr.sin_family =AF_INET; ld->udpaddr.sin_port =0; ld->udponly =0; while (! stralloc_copys(&ld->prefix, "")) pause_nomem(); -- cgit 1.4.1