From 7fc7824b866ef7657ba52e8d7bc806d981d73811 Mon Sep 17 00:00:00 2001 From: Rainer Gerhards Date: Thu, 20 Sep 2007 16:54:54 +0000 Subject: code cleanup --- tcpsyslog.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'tcpsyslog.c') diff --git a/tcpsyslog.c b/tcpsyslog.c index 27ef8e40..d2a4b724 100644 --- a/tcpsyslog.c +++ b/tcpsyslog.c @@ -42,9 +42,6 @@ #if HAVE_FCNTL_H #include #endif -#ifdef USE_PTHREADS -#include -#endif #include "syslogd.h" #include "syslogd-types.h" @@ -420,7 +417,7 @@ void TCPSessAccept(int fd) /* OK, we have a "good" index... */ /* get the host name */ - if(cvthname(&addr, fromHost, fromHostFQDN) == 0) { + if(cvthname(&addr, fromHost, fromHostFQDN) != RS_RET_OK) { /* we seem to have something malicous - at least we * are now told to discard the connection request. * Error message has been generated by cvthname. -- cgit