summaryrefslogtreecommitdiffstats
path: root/tcpsrv.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2008-04-17 09:54:10 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2008-04-17 09:54:10 +0200
commit911101ed26292c766eae0b48575e5911b96d2ea7 (patch)
tree743d3dc673fbb29b734cd1f0f25d53a649e63ecf /tcpsrv.c
parente16a207726dce038835cdc12a928a95b5b915440 (diff)
downloadrsyslog-911101ed26292c766eae0b48575e5911b96d2ea7.tar.gz
rsyslog-911101ed26292c766eae0b48575e5911b96d2ea7.tar.xz
rsyslog-911101ed26292c766eae0b48575e5911b96d2ea7.zip
moved "option_DisallowWarning" variable to global data pool
Diffstat (limited to 'tcpsrv.c')
-rw-r--r--tcpsrv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tcpsrv.c b/tcpsrv.c
index b3eaec1f..499b0ce8 100644
--- a/tcpsrv.c
+++ b/tcpsrv.c
@@ -468,7 +468,7 @@ SessAccept(tcpsrv_t *pThis, tcps_sess_t **ppSess, int fd)
*/
if(!pThis->pIsPermittedHost((struct sockaddr*) &addr, (char*) fromHostFQDN, pThis->pUsr, pSess->pUsr)) {
dbgprintf("%s is not an allowed sender\n", (char *) fromHostFQDN);
- if(option_DisallowWarning) {
+ if(glbl.GetOption_DisallowWarning()) {
errno = 0;
errmsg.LogError(NO_ERRCODE, "TCP message from disallowed sender %s discarded",
(char*)fromHost);