mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-09-29 19:00:57 +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>
|
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
|
* 25985: Src/hashtable.c: don't try to disable signal traps if
|
||||||
getsignum returns -1.
|
getsignum returns -1.
|
||||||
|
|
||||||
|
|
|
@ -570,7 +570,7 @@ bin_ztcp(char *nam, char **args, Options ops, UNUSED(int func))
|
||||||
if (ztpeer)
|
if (ztpeer)
|
||||||
remotename = ztpeer->h_name;
|
remotename = ztpeer->h_name;
|
||||||
else
|
else
|
||||||
remotename = ztrdup(inet_ntoa(sess->peer.in.sin_addr));
|
remotename = inet_ntoa(sess->peer.in.sin_addr);
|
||||||
if (OPT_ISSET(ops,'L')) {
|
if (OPT_ISSET(ops,'L')) {
|
||||||
int schar;
|
int schar;
|
||||||
if (sess->flags & ZTCP_ZFTP)
|
if (sess->flags & ZTCP_ZFTP)
|
||||||
|
|
Loading…
Reference in a new issue