[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-c4023f1b3aa9svn/tags/lighttpd-1.4.38
parent
ab05eb7cec
commit
b0ecb4d44b
Loading…
Reference in new issue