about summary refs log tree commit diff
path: root/Src/Modules/zftp.c
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2002-04-18 11:39:13 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2002-04-18 11:39:13 +0000
commit2a55dc74ef3037694ba75da801f0d801605499f0 (patch)
treee768230258dd707569f85f3ac39988c01b10ac62 /Src/Modules/zftp.c
parent75eca01e4f1844f27e051d2c1fa64393e389deb6 (diff)
downloadzsh-2a55dc74ef3037694ba75da801f0d801605499f0.tar.gz
zsh-2a55dc74ef3037694ba75da801f0d801605499f0.tar.xz
zsh-2a55dc74ef3037694ba75da801f0d801605499f0.zip
17011: Src/Modules/tcp.c, Src/Modules/zftp.c: restore
freehostent() incorrectly removed in 16172.
Diffstat (limited to 'Src/Modules/zftp.c')
-rw-r--r--Src/Modules/zftp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/Src/Modules/zftp.c b/Src/Modules/zftp.c
index 9408c7a1f..6ee0f0156 100644
--- a/Src/Modules/zftp.c
+++ b/Src/Modules/zftp.c
@@ -1793,7 +1793,7 @@ zftp_open(char *name, char **args, int flags)
 		tcp_close(zfsess->control);
 		zfsess->control = NULL;
 	    }
-	    zfreehostent(zhostp);
+	    freehostent(zhostp);
 	    zfunsetparam("ZFTP_HOST");
 	    FAILED();
 	    zwarnnam(name, "socket failed: %e", NULL, errno);
@@ -1821,7 +1821,7 @@ zftp_open(char *name, char **args, int flags)
 	}
 
 	if (err) {
-	    zfreehostent(zhostp);
+	    freehostent(zhostp);
 	    zfclose(0);
 	    FAILED();
 	    zwarnnam(name, "connect failed: %e", NULL, errno);
@@ -1842,7 +1842,7 @@ zftp_open(char *name, char **args, int flags)
 	zsh_inet_ntop(af, *addrp, pbuf, sizeof(pbuf));
 	zfsetparam("ZFTP_IP", ztrdup(pbuf), ZFPM_READONLY);
     }
-    zfreehostent(zhostp);
+    freehostent(zhostp);
     /* now we can talk to the control connection */
     zcfinish = 0;