1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-09-25 17:41:19 +02:00

25987: don't ztrdup the buffer returned by inet_ntoa.

This commit is contained in:
Clint Adams 2008-11-01 18:20:14 +00:00
parent 484644676a
commit 1b78e1a912
2 changed files with 4 additions and 1 deletions

View file

@ -1,5 +1,8 @@
2008-11-01 Clint Adams <clint@zsh.org>
* 25987: Src/Modules/tcp.c: don't ztrdup the buffer returned by
inet_ntoa.
* 25985: Src/hashtable.c: don't try to disable signal traps if
getsignum returns -1.

View file

@ -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)