summaryrefslogtreecommitdiffstats
path: root/syslogd.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2007-12-25 16:04:46 +0000
committerRainer Gerhards <rgerhards@adiscon.com>2007-12-25 16:04:46 +0000
commit2c8eae6a0c00b1e067cca8a1a77b7f9ca4a9e7f3 (patch)
treedc2b3456d81c35f3b0d8946a0d3fc1091d5c3b32 /syslogd.c
parent7af2c0a66b03db92a9ca1faae6c37c8fdc666c0e (diff)
downloadrsyslog-2c8eae6a0c00b1e067cca8a1a77b7f9ca4a9e7f3.tar.gz
rsyslog-2c8eae6a0c00b1e067cca8a1a77b7f9ca4a9e7f3.tar.xz
rsyslog-2c8eae6a0c00b1e067cca8a1a77b7f9ca4a9e7f3.zip
moved some of the udp input code to its right place
Diffstat (limited to 'syslogd.c')
-rw-r--r--syslogd.c17
1 files changed, 4 insertions, 13 deletions
diff --git a/syslogd.c b/syslogd.c
index c2fe3521..bcc9cdaf 100644
--- a/syslogd.c
+++ b/syslogd.c
@@ -2760,7 +2760,8 @@ static void doDie(int sig)
* any calls to die() in new code!
* rgerhards, 2005-10-24
*/
-static void die(int sig)
+static void
+die(int sig)
{
char buf[256];
@@ -3475,11 +3476,6 @@ init(void)
#ifdef SYSLOG_INET
if (restart) {
- if (pAllowedSenders_UDP != NULL) {
- clearAllowedSenders (pAllowedSenders_UDP);
- pAllowedSenders_UDP = NULL;
- }
-
if (pAllowedSenders_TCP != NULL) {
clearAllowedSenders (pAllowedSenders_TCP);
pAllowedSenders_TCP = NULL;
@@ -3491,13 +3487,8 @@ init(void)
}
#endif
}
-
- assert(pAllowedSenders_UDP == NULL && pAllowedSenders_TCP == NULL
-#ifdef USE_GSSAPI
- && pAllowedSenders_GSS == NULL
-#endif
- );
#endif
+
/* I was told by an IPv6 expert that calling getservbyname() seems to be
* still valid, at least for the use case we have. So I re-enabled that
* code. rgerhards, 2007-07-02
@@ -3602,7 +3593,7 @@ init(void)
*/
if(Forwarding || AcceptRemote) {
if (finet == NULL) {
- if((finet = create_udp_socket(LogPort)) != NULL)
+ if((finet = create_udp_socket((uchar*)LogPort)) != NULL)
dbgprintf("Opened %d syslog UDP port(s).\n", *finet);
}
} else {