mirror of
https://github.com/openbsd/src.git
synced 2025-01-03 06:45:37 -08:00
zero struct sockaddr_un before use, from andrushock AT korovino.net; ok deraadt@
This commit is contained in:
parent
4837b55977
commit
5613d0be72
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user