Added init prototection
This commit is contained in:
parent
f0375195df
commit
62b017ce35
@ -491,6 +491,11 @@ void receiver(struct servent *se)
|
||||
return;
|
||||
}
|
||||
|
||||
if (tnsl->state == NCS_INIT) {
|
||||
Syslog('r', "IBC: message received from %s while in init state, dropped", hostname);
|
||||
return;
|
||||
}
|
||||
|
||||
tnsl->last = time(NULL);
|
||||
crbuf[strlen(crbuf) -2] = '\0';
|
||||
Syslog('r', "< %s: \"%s\"", hostname, printable(crbuf, 0));
|
||||
|
Reference in New Issue
Block a user