Fix uninitialised socket handling structures.

This bug would cause crashes simply upon receiving SIGHUP.
This commit is contained in:
Sam Hocevar 2016-01-11 01:09:39 +01:00
parent 80db9e344e
commit 6e862b6306

View File

@ -389,6 +389,9 @@ void readConfiguration(void)
if (!seFds) {
goto lowMemory;
}
for (i = 0; i < seTotal; ++i) {
seFds[i] = INVALID_SOCKET;
}
seLocalAddrs = (struct in_addr *) malloc(sizeof(struct in_addr) *
seTotal);
if (!seLocalAddrs) {