From c11241ab8c1662a3ae7eee1fdb83f51466990209 Mon Sep 17 00:00:00 2001 From: phk Date: Sat, 1 Mar 1997 20:05:41 +0000 Subject: ntohl() missing on result from gethostbyname() --- net/scotty/files/patch-ab | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 net/scotty/files/patch-ab (limited to 'net/scotty/files') diff --git a/net/scotty/files/patch-ab b/net/scotty/files/patch-ab new file mode 100644 index 0000000..5117a58 --- /dev/null +++ b/net/scotty/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; + } + -- cgit v1.1