diff options
author | Kyle J. McKay <mackyle@gmail.com> | 2015-12-04 20:22:42 +0000 |
---|---|---|
committer | Stefan Bühler <stbuehler@web.de> | 2015-12-04 20:22:42 +0000 |
commit | b0ecb4d44b87510ee3eb1305bc47ede0816e6d71 (patch) | |
tree | 1c83dbfe2ffeb8aa3b407ce51d05fd83035dd720 /tests/fcgi-auth.c | |
parent | ab05eb7cec9772f0b9ca5337a32f705199abc0e7 (diff) | |
download | lighttpd-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