summaryrefslogtreecommitdiffstats
path: root/runtime/netstrms.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2008-04-24 09:57:43 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2008-04-24 09:57:43 +0200
commitbf3d2c1b392af1383a3cdc247f2280fd31a12699 (patch)
tree532f3de6ec3b7fc7557c4e3a60f142a07a29580a /runtime/netstrms.c
parent721b9ee252143d182c3c145380e5dbec8c3b0102 (diff)
downloadrsyslog-bf3d2c1b392af1383a3cdc247f2280fd31a12699.tar.gz
rsyslog-bf3d2c1b392af1383a3cdc247f2280fd31a12699.tar.xz
rsyslog-bf3d2c1b392af1383a3cdc247f2280fd31a12699.zip
message reception via TCP work again
... at least in some cases ;) I assume there are still a couple of bugs inside the code. But at least we have something from where we can continue to work on.
Diffstat (limited to 'runtime/netstrms.c')
-rw-r--r--runtime/netstrms.c21
1 files changed, 2 insertions, 19 deletions
diff --git a/runtime/netstrms.c b/runtime/netstrms.c
index 46e740ab..661234e4 100644
--- a/runtime/netstrms.c
+++ b/runtime/netstrms.c
@@ -100,22 +100,6 @@ finalize_it:
}
-/* load the netstrm interface, but only if needed (if we load it always, we get
- * into a circular dependency, because netstrm also needs ourselfs in some cases
- * rgerhards, 2008-04-23
- */
-static inline rsRetVal
-loadNetstrm(void)
-{
- DEFiRet;
- if(!netstrm.ifIsLoaded) {
- CHKiRet(objUse(netstrm, LM_NETSTRM_FILENAME));
- }
-finalize_it:
- RETiRet;
-}
-
-
/* create an instance of a netstrm object. It is initialized with default
* values. The current driver is used. The caller may set netstrm properties
* and must call ConstructFinalize().
@@ -126,7 +110,7 @@ CreateStrm(netstrms_t *pThis, netstrm_t **ppStrm)
netstrm_t *pStrm = NULL;
DEFiRet;
- CHKiRet(loadNetstrm());
+ CHKiRet(objUse(netstrm, LM_NETSTRM_FILENAME));
CHKiRet(netstrm.Construct(&pStrm));
/* we copy over our driver structure. We could provide a pointer to
* ourselves, but that costs some performance on each driver invocation.
@@ -173,8 +157,7 @@ CODESTARTObjClassExit(netstrms)
/* release objects we no longer need */
//objRelease(net, CORE_COMPONENT);
objRelease(glbl, CORE_COMPONENT);
- if(netstrm.ifIsLoaded)
- objRelease(netstrm, LM_NETSTRM_FILENAME);
+ objRelease(netstrm, LM_NETSTRM_FILENAME);
ENDObjClassExit(netstrms)