diff options
author | Clint Adams <clint@users.sourceforge.net> | 2008-11-01 18:20:14 +0000 |
---|---|---|
committer | Clint Adams <clint@users.sourceforge.net> | 2008-11-01 18:20:14 +0000 |
commit | 1b78e1a9121111ccb628262202c112c199ffc6d9 (patch) | |
tree | 1da891e33b36e9737f45b7c0334a5e361c8176e8 /Src/Modules/tcp.c | |
parent | 484644676af2f83434f0f9bed9b23d7cecab16e8 (diff) | |
download | zsh-1b78e1a9121111ccb628262202c112c199ffc6d9.tar.gz zsh-1b78e1a9121111ccb628262202c112c199ffc6d9.tar.xz zsh-1b78e1a9121111ccb628262202c112c199ffc6d9.zip |
25987: don't ztrdup the buffer returned by inet_ntoa.
Diffstat (limited to 'Src/Modules/tcp.c')
-rw-r--r-- | Src/Modules/tcp.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) |