diff options
author | phk <phk@FreeBSD.org> | 1997-03-02 04:05:41 +0800 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 1997-03-02 04:05:41 +0800 |
commit | c11241ab8c1662a3ae7eee1fdb83f51466990209 (patch) | |
tree | 9a61eea40809b3de07c49228be4330d1dbbdf4fd /net/scotty3/files | |
parent | 9d7270e29f0b8151c9f3b5a7e2419d7193fb844f (diff) | |
download | freebsd-ports-gnome-c11241ab8c1662a3ae7eee1fdb83f51466990209.tar.gz freebsd-ports-gnome-c11241ab8c1662a3ae7eee1fdb83f51466990209.tar.zst freebsd-ports-gnome-c11241ab8c1662a3ae7eee1fdb83f51466990209.zip |
ntohl() missing on result from gethostbyname()
Diffstat (limited to 'net/scotty3/files')
-rw-r--r-- | net/scotty3/files/patch-ab | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/net/scotty3/files/patch-ab b/net/scotty3/files/patch-ab new file mode 100644 index 000000000000..5117a58b2f53 --- /dev/null +++ b/net/scotty3/files/patch-ab @@ -0,0 +1,20 @@ +diff -u -r tnm/generic/tnmUtil.c tnm/generic/tnmUtil.c +--- ../tnm/generic/tnmUtil.c Tue Aug 6 17:20:38 1996 ++++ ../tnm/generic/tnmUtil.c Sat Mar 1 20:45:12 1997 +@@ -400,7 +400,7 @@ + if (hostEntry) { + struct sockaddr_in *caddr; + caddr = (struct sockaddr_in *) Tcl_GetHashValue(hostEntry); +- addr->sin_addr.s_addr = caddr->sin_addr.s_addr; ++ addr->sin_addr.s_addr = ntohl(caddr->sin_addr.s_addr); + return TCL_OK; + } + +@@ -425,6 +425,7 @@ + memcpy((char *) &addr->sin_addr, (char *) &hostaddr, 4); + } + ++ addr->sin_addr.s_addr = ntohl(addr->sin_addr.s_addr); + return TCL_OK; + } + |