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:
parent
841ec695e4
commit
0b2e00118a
@ -690,6 +690,7 @@ SERV_PROTOCOL *proto;
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
proto->listener = NULL;
|
||||
proto->protocol = strdup(protocol);
|
||||
if (address)
|
||||
proto->address = strdup(address);
|
||||
|
Loading…
x
Reference in New Issue
Block a user