summaryrefslogtreecommitdiffstats
path: root/syslogd.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2007-09-18 13:05:05 +0000
committerRainer Gerhards <rgerhards@adiscon.com>2007-09-18 13:05:05 +0000
commitaebd480be7149d51c628fe50531a3bd359550a82 (patch)
tree43878fcb2e890723d0d6ea1a2e54b65f24e588e5 /syslogd.c
parente8bdad7f8b4da71657f504950adab65e352d864c (diff)
downloadrsyslog-aebd480be7149d51c628fe50531a3bd359550a82.tar.gz
rsyslog-aebd480be7149d51c628fe50531a3bd359550a82.tar.xz
rsyslog-aebd480be7149d51c628fe50531a3bd359550a82.zip
split the function cvthname() for clarity. Also changed to using the
rsRetVal status return system
Diffstat (limited to 'syslogd.c')
-rw-r--r--syslogd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/syslogd.c b/syslogd.c
index d45e561f..79562944 100644
--- a/syslogd.c
+++ b/syslogd.c
@@ -5627,12 +5627,12 @@ static rsRetVal processSelectAfter(int maxfds, int nfds, fd_set *pReadfds, fd_se
for (i = 0; i < *finet; i++) {
if (FD_ISSET(finet[i+1], pReadfds)) {
socklen = sizeof(frominet);
- memset(line, '\0', sizeof(line));
+ memset(line, '\0', sizeof(line)); // TODO: I think we need this for debug only - remove after bug hunt
l = recvfrom(finet[i+1], line, MAXLINE - 1, 0,
(struct sockaddr *)&frominet, &socklen);
if (l > 0) {
line[l] = '\0';
- if(cvthname(&frominet, fromHost, fromHostFQDN) == 1) {
+ if(cvthname(&frominet, fromHost, fromHostFQDN) == RS_RET_OK) {
dbgprintf("Message from inetd socket: #%d, host: %s\n",
finet[i+1], fromHost);
/* Here we check if a host is permitted to send us