diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2007-09-20 16:54:54 +0000 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2007-09-20 16:54:54 +0000 |
commit | 7fc7824b866ef7657ba52e8d7bc806d981d73811 (patch) | |
tree | fbfd2c943eedb1c6c28902a5197b2eb0f6c698a2 /tcpsyslog.c | |
parent | c351fdf5397027aa6e52d2dc69f02b4cd436450b (diff) | |
download | rsyslog-7fc7824b866ef7657ba52e8d7bc806d981d73811.tar.gz rsyslog-7fc7824b866ef7657ba52e8d7bc806d981d73811.tar.xz rsyslog-7fc7824b866ef7657ba52e8d7bc806d981d73811.zip |
code cleanup
Diffstat (limited to 'tcpsyslog.c')
-rw-r--r-- | tcpsyslog.c | 5 |
1 files changed, 1 insertions, 4 deletions
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 <fcntl.h> #endif -#ifdef USE_PTHREADS -#include <pthread.h> -#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. |