summaryrefslogtreecommitdiffstats
path: root/tcpsrv.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2013-01-24 06:19:13 +0100
committerRainer Gerhards <rgerhards@adiscon.com>2013-01-24 06:19:13 +0100
commit0d71694fb3cbff71d504769e0e70a58ebe5f9a0d (patch)
treed36030df25a095ac84a196a466f12456b3f855cb /tcpsrv.c
parent6b4d9afccb4297face53fd6bec0fb30b6a8da1c3 (diff)
downloadrsyslog-0d71694fb3cbff71d504769e0e70a58ebe5f9a0d.tar.gz
rsyslog-0d71694fb3cbff71d504769e0e70a58ebe5f9a0d.tar.bz2
rsyslog-0d71694fb3cbff71d504769e0e70a58ebe5f9a0d.zip
optimize: have dns cache pre-create rsyslog prop_t's
Diffstat (limited to 'tcpsrv.c')
-rw-r--r--tcpsrv.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/tcpsrv.c b/tcpsrv.c
index 7ba557e0..c1033ef9 100644
--- a/tcpsrv.c
+++ b/tcpsrv.c
@@ -424,7 +424,7 @@ SessAccept(tcpsrv_t *pThis, tcpLstnPortList_t *pLstnInfo, tcps_sess_t **ppSess,
int iSess = -1;
struct sockaddr_storage *addr;
uchar *fromHostFQDN = NULL;
- uchar *fromHostIP = NULL;
+ prop_t *fromHostIP;
ISOBJ_TYPE_assert(pThis, tcpsrv);
assert(pLstnInfo != NULL);
@@ -475,7 +475,6 @@ SessAccept(tcpsrv_t *pThis, tcpLstnPortList_t *pLstnInfo, tcps_sess_t **ppSess,
CHKiRet(tcps_sess.SetHost(pSess, fromHostFQDN));
fromHostFQDN = NULL; /* we handed this string over */
CHKiRet(tcps_sess.SetHostIP(pSess, fromHostIP));
- fromHostIP = NULL; /* we handed this string over */
CHKiRet(tcps_sess.SetStrm(pSess, pNewStrm));
pNewStrm = NULL; /* prevent it from being freed in error handler, now done in tcps_sess! */
CHKiRet(tcps_sess.SetMsgIdx(pSess, 0));
@@ -498,7 +497,6 @@ finalize_it:
if(pNewStrm != NULL)
netstrm.Destruct(&pNewStrm);
free(fromHostFQDN);
- free(fromHostIP);
}
RETiRet;