diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | Src/Modules/tcp.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog index 8dc573359..7593e90a8 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2008-11-06 Clint Adams <clint@zsh.org> + + * 26013: Src/Modules/tcp.c: don't ztrdup the other buffer returned + by inet_ntoa. cf. 25987. + 2008-11-05 Peter Stephenson <pws@csr.com> * 26008, Src/builtin.c, Test/B02typeset.ztst: "typeset -g 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; |