summaryrefslogtreecommitdiff
path: root/tests/fcgi-auth.c
diff options
context:
space:
mode:
authorKyle J. McKay <mackyle@gmail.com>2015-12-04 20:22:42 +0000
committerStefan Bühler <stbuehler@web.de>2015-12-04 20:22:42 +0000
commitb0ecb4d44b87510ee3eb1305bc47ede0816e6d71 (patch)
tree1c83dbfe2ffeb8aa3b407ce51d05fd83035dd720 /tests/fcgi-auth.c
parentab05eb7cec9772f0b9ca5337a32f705199abc0e7 (diff)
downloadlighttpd-git-b0ecb4d44b87510ee3eb1305bc47ede0816e6d71.tar.gz
[mod_fastcgi/mod_scgi] zero sockaddr structs before use (fixes #2691)
When a sockaddr_un, sockaddr_in or sockaddr_in6 structure is allocated on the stack or heap, it may contain random byte values. The "unused" and "reserved" parts must be zerod otherwise unexpected failures may occur. The simplest way to do this and be compatible with various platforms' struct layouts is just to memset them to 0. Signed-off-by: Kyle J. McKay <mackyle@gmail.com> git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@3059 152afb58-edef-0310-8abb-c4023f1b3aa9
Diffstat (limited to 'tests/fcgi-auth.c')
0 files changed, 0 insertions, 0 deletions