diff options
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; |