Added init prototection

This commit is contained in:
Michiel Broek 2005-04-18 10:30:35 +00:00
parent f0375195df
commit 62b017ce35

View File

@ -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));