[PATCH] zero sockaddr structures before use in mod_*cgi
When a sockaddr_un, sockaddr_in or sockaddr_in6 structure
is allocated on the stack or heap, it may contain random
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.
The current version of the code is just zeroing the pointer
to the struct but not the struct itself which is not helpful.
This problem affects both mod_fastcgi and mod_scgi.
Patch file attached.
Also available in: Atom