From cbc24017fef38963fb1ccbbe3aeb57b5dfdb92a2 Mon Sep 17 00:00:00 2001 From: Clint Adams Date: Thu, 6 Nov 2008 01:35:12 +0000 Subject: 26013: don't ztrdup the other buffer returned by inet_ntoa. cf. 25987. --- Src/Modules/tcp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Src/Modules') diff --git a/Src/Modules/tcp.c b/Src/Modules/tcp.c index da70855ed..2b9e9df18 100644 --- a/Src/Modules/tcp.c +++ b/Src/Modules/tcp.c @@ -565,7 +565,7 @@ bin_ztcp(char *nam, char **args, Options ops, UNUSED(int func)) if (zthost) localname = zthost->h_name; else - localname = ztrdup(inet_ntoa(sess->sock.in.sin_addr)); + localname = inet_ntoa(sess->sock.in.sin_addr); ztpeer = gethostbyaddr((const void *)&(sess->peer.in.sin_addr), sizeof(sess->peer.in.sin_addr), AF_INET); if (ztpeer) remotename = ztpeer->h_name; -- cgit 1.4.1