diff options
author | Damien Miller <djm@cvs.openbsd.org> | 2004-03-15 01:07:22 +0000 |
---|---|---|
committer | Damien Miller <djm@cvs.openbsd.org> | 2004-03-15 01:07:22 +0000 |
commit | 8d26a83e17786551ec3580e3f4bb62582fd688b3 (patch) | |
tree | 6fd9f51e4df7e7cbdf2ff01a4c1d929850d31586 /usr.sbin | |
parent | e3e1c248bdd158d3db3cc0e174c723648d41c24b (diff) |
zero struct sockaddr_un before use, from andrushock AT korovino.net; ok deraadt@
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/syslogc/syslogc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/syslogc/syslogc.c b/usr.sbin/syslogc/syslogc.c index 21ec9a8fd94..f32eddbd1ee 100644 --- a/usr.sbin/syslogc/syslogc.c +++ b/usr.sbin/syslogc/syslogc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: syslogc.c,v 1.3 2004/01/12 21:18:39 djm Exp $ */ +/* $OpenBSD: syslogc.c,v 1.4 2004/03/15 01:07:21 djm Exp $ */ /* * Copyright (c) 2004 Damien Miller @@ -101,6 +101,7 @@ main(int argc, char **argv) errx(1, "Specified log name is too long"); } + memset(&ctl, '\0', sizeof(ctl)); strlcpy(ctl.sun_path, ctlsock_path, sizeof(ctl.sun_path)); ctl.sun_family = AF_UNIX; |