summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorÉrico Rolim <erico.erc@gmail.com>2020-08-16 15:12:45 -0300
committerGerrit Pape <pape@smarden.org>2024-09-25 23:38:40 +0000
commit6e273f0a318cc132184d946a764e351f3ec182c9 (patch)
treecdeb2593b7dea832532ee3cf525a914670086902 /src
parentebc131e500652109fcb30684c683f4015a580984 (diff)
downloadrunit-6e273f0a318cc132184d946a764e351f3ec182c9.tar.gz
runit-6e273f0a318cc132184d946a764e351f3ec182c9.tar.xz
runit-6e273f0a318cc132184d946a764e351f3ec182c9.zip
svlogd.c: Initialize all fields of sockaddr_in.
http://skarnet.org/cgi-bin/archive.cgi?2:mss:1163:201602:gpiglpbjdemlioaeabbn
Diffstat (limited to 'src')
-rw-r--r--src/svlogd.c1
1 files changed, 1 insertions, 0 deletions
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();