From 1b78e1a9121111ccb628262202c112c199ffc6d9 Mon Sep 17 00:00:00 2001 From: Clint Adams Date: Sat, 1 Nov 2008 18:20:14 +0000 Subject: 25987: don't ztrdup the buffer returned by inet_ntoa. --- Src/Modules/tcp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Src') diff --git a/Src/Modules/tcp.c b/Src/Modules/tcp.c index d1d4e5002..da70855ed 100644 --- a/Src/Modules/tcp.c +++ b/Src/Modules/tcp.c @@ -570,7 +570,7 @@ bin_ztcp(char *nam, char **args, Options ops, UNUSED(int func)) if (ztpeer) remotename = ztpeer->h_name; else - remotename = ztrdup(inet_ntoa(sess->peer.in.sin_addr)); + remotename = inet_ntoa(sess->peer.in.sin_addr); if (OPT_ISSET(ops,'L')) { int schar; if (sess->flags & ZTCP_ZFTP) -- cgit 1.4.1