Added missing initialization

The service->protocol->listener was never initialized in serviceAddProtocol
and caused a crash if the listener was not started.
This commit is contained in:
Markus Makela 2015-11-13 16:38:22 +02:00
parent 841ec695e4
commit 0b2e00118a

View File

@ -690,6 +690,7 @@ SERV_PROTOCOL *proto;
{
return 0;
}
proto->listener = NULL;
proto->protocol = strdup(protocol);
if (address)
proto->address = strdup(address);