diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2013-01-22 14:52:34 +0100 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2013-01-22 14:52:34 +0100 |
commit | 45d11af0b9975937e536d1c9b6d7bdaff5ade1b0 (patch) | |
tree | 7416e7c657244acfbda92e1a1507f78d7bef74ff /runtime/nsd_ptcp.c | |
parent | 440aaff114607e82aefee56336846611a2e35c9c (diff) | |
download | rsyslog-45d11af0b9975937e536d1c9b6d7bdaff5ade1b0.tar.gz rsyslog-45d11af0b9975937e536d1c9b6d7bdaff5ade1b0.tar.bz2 rsyslog-45d11af0b9975937e536d1c9b6d7bdaff5ade1b0.zip |
some fixes to commit 440aaff114607e82aefee56336846611a2e35c9c
extended testbench run brought up some issues...
Diffstat (limited to 'runtime/nsd_ptcp.c')
-rw-r--r-- | runtime/nsd_ptcp.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/runtime/nsd_ptcp.c b/runtime/nsd_ptcp.c index c05397a6..ebfed722 100644 --- a/runtime/nsd_ptcp.c +++ b/runtime/nsd_ptcp.c @@ -264,9 +264,10 @@ FillRemHost(nsd_ptcp_t *pThis, struct sockaddr_storage *pAddr) * (side note: we may hold on to these values for quite a while, thus we trim their * memory consumption) */ - if((pThis->pRemHostName = MALLOC(prop.GetStringLen(fqdn+1))) == NULL) + if((pThis->pRemHostName = MALLOC(prop.GetStringLen(fqdn)+1)) == NULL) ABORT_FINALIZE(RS_RET_OUT_OF_MEMORY); memcpy(pThis->pRemHostName, propGetSzStr(fqdn), prop.GetStringLen(fqdn)+1); + prop.Destruct(&fqdn); finalize_it: RETiRet; |