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:
parent
484644676a
commit
1b78e1a912
2 changed files with 4 additions and 1 deletions
|
@ -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.
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue