summaryrefslogtreecommitdiffstats
path: root/runtime
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2009-11-12 14:21:53 +0100
committerRainer Gerhards <rgerhards@adiscon.com>2009-11-12 14:21:53 +0100
commitf6dfcc7c3d326c54e1d5e301e1a2c032e4131e02 (patch)
treed61ed310ddd9953893a6ff4ce9e390bf912026e9 /runtime
parente4542eb926c9fd757dc8f40f4fe6cb843b8b2650 (diff)
downloadrsyslog-f6dfcc7c3d326c54e1d5e301e1a2c032e4131e02.tar.gz
rsyslog-f6dfcc7c3d326c54e1d5e301e1a2c032e4131e02.tar.xz
rsyslog-f6dfcc7c3d326c54e1d5e301e1a2c032e4131e02.zip
correcting -q/-Q patch - was invalid
This is the correct patch. The previous one solved the segfault, but disabled the -q/Q options.
Diffstat (limited to 'runtime')
-rw-r--r--runtime/net.c3
-rw-r--r--runtime/net.h4
2 files changed, 5 insertions, 2 deletions
diff --git a/runtime/net.c b/runtime/net.c
index f289ecc5..29f7062b 100644
--- a/runtime/net.c
+++ b/runtime/net.c
@@ -1517,6 +1517,9 @@ CODESTARTobjQueryInterface(net)
pIf->AddPermittedPeer = AddPermittedPeer;
pIf->DestructPermittedPeers = DestructPermittedPeers;
pIf->PermittedPeerWildcardMatch = PermittedPeerWildcardMatch;
+ /* data members */
+ pIf->pACLAddHostnameOnFail = &ACLAddHostnameOnFail;
+ pIf->pACLDontResolve = &ACLDontResolve;
finalize_it:
ENDobjQueryInterface(net)
diff --git a/runtime/net.h b/runtime/net.h
index 8e64f7ab..092c3116 100644
--- a/runtime/net.h
+++ b/runtime/net.h
@@ -147,8 +147,8 @@ BEGINinterface(net) /* name must also be changed in ENDinterface macro! */
rsRetVal (*DestructPermittedPeers)(permittedPeers_t **ppRootPeer);
rsRetVal (*PermittedPeerWildcardMatch)(permittedPeers_t *pPeer, uchar *pszNameToMatch, int *pbIsMatching);
/* data members - these should go away over time... TODO */
- int pACLAddHostnameOnFail; /* add hostname to acl when DNS resolving has failed */
- int pACLDontResolve; /* add hostname to acl instead of resolving it to IP(s) */
+ int *pACLAddHostnameOnFail; /* add hostname to acl when DNS resolving has failed */
+ int *pACLDontResolve; /* add hostname to acl instead of resolving it to IP(s) */
ENDinterface(net)
#define netCURR_IF_VERSION 4 /* increment whenever you change the interface structure! */