summaryrefslogtreecommitdiffstats
path: root/plugins/imtcp
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2008-11-29 07:22:48 +0100
committerRainer Gerhards <rgerhards@adiscon.com>2008-11-29 07:22:48 +0100
commitf0ddbed44c332391ae6d9bbf6b07e2f06c4dd676 (patch)
treeb6d2ba495ba6e6843ac1cd6be6f858783d2019d8 /plugins/imtcp
parentae5902a24483102840ad6c3d6ee3cb5d6e8df791 (diff)
downloadrsyslog-f0ddbed44c332391ae6d9bbf6b07e2f06c4dd676.tar.gz
rsyslog-f0ddbed44c332391ae6d9bbf6b07e2f06c4dd676.tar.xz
rsyslog-f0ddbed44c332391ae6d9bbf6b07e2f06c4dd676.zip
security bugfix: $AllowedSender was not honored,
...all senders were permitted instead
Diffstat (limited to 'plugins/imtcp')
-rw-r--r--plugins/imtcp/imtcp.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/plugins/imtcp/imtcp.c b/plugins/imtcp/imtcp.c
index f01a9f0f..8e7d2905 100644
--- a/plugins/imtcp/imtcp.c
+++ b/plugins/imtcp/imtcp.c
@@ -89,7 +89,7 @@ static int
isPermittedHost(struct sockaddr *addr, char *fromHostFQDN, void __attribute__((unused)) *pUsrSrv,
void __attribute__((unused)) *pUsrSess)
{
- return net.isAllowedSender(net.pAllowedSenders_TCP, addr, fromHostFQDN);
+ return net.isAllowedSender((uchar*) "TCP", addr, fromHostFQDN);
}
@@ -212,10 +212,7 @@ ENDwillRun
BEGINafterRun
CODESTARTafterRun
/* do cleanup here */
- if(net.pAllowedSenders_TCP != NULL) {
- net.clearAllowedSenders(net.pAllowedSenders_TCP);
- net.pAllowedSenders_TCP = NULL;
- }
+ net.clearAllowedSenders((char*)"TCP");
ENDafterRun