about summary refs log tree commit diff
path: root/Src/Modules
diff options
context:
space:
mode:
authorClint Adams <clint@users.sourceforge.net>2008-11-06 01:35:12 +0000
committerClint Adams <clint@users.sourceforge.net>2008-11-06 01:35:12 +0000
commitcbc24017fef38963fb1ccbbe3aeb57b5dfdb92a2 (patch)
tree1ecfc085d974806f0d5b5729bb6d4fd8e82e02eb /Src/Modules
parent60b410fd7c709f0332355a0b013e92461d3e07ec (diff)
downloadzsh-cbc24017fef38963fb1ccbbe3aeb57b5dfdb92a2.tar.gz
zsh-cbc24017fef38963fb1ccbbe3aeb57b5dfdb92a2.tar.xz
zsh-cbc24017fef38963fb1ccbbe3aeb57b5dfdb92a2.zip
26013: don't ztrdup the other buffer returned by inet_ntoa. cf. 25987.
Diffstat (limited to 'Src/Modules')
-rw-r--r--Src/Modules/tcp.c2
1 files changed, 1 insertions, 1 deletions
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;