summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>1997-03-01 20:05:41 +0000
committerphk <phk@FreeBSD.org>1997-03-01 20:05:41 +0000
commitc11241ab8c1662a3ae7eee1fdb83f51466990209 (patch)
tree9a61eea40809b3de07c49228be4330d1dbbdf4fd
parent9d7270e29f0b8151c9f3b5a7e2419d7193fb844f (diff)
downloadFreeBSD-ports-c11241ab8c1662a3ae7eee1fdb83f51466990209.zip
FreeBSD-ports-c11241ab8c1662a3ae7eee1fdb83f51466990209.tar.gz
ntohl() missing on result from gethostbyname()
-rw-r--r--net-mgmt/scotty3/files/patch-ab20
-rw-r--r--net/scotty/files/patch-ab20
-rw-r--r--net/scotty3/files/patch-ab20
3 files changed, 60 insertions, 0 deletions
diff --git a/net-mgmt/scotty3/files/patch-ab b/net-mgmt/scotty3/files/patch-ab
new file mode 100644
index 0000000..5117a58
--- /dev/null
+++ b/net-mgmt/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;
+ }
+
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;
+ }
+
diff --git a/net/scotty3/files/patch-ab b/net/scotty3/files/patch-ab
new file mode 100644
index 0000000..5117a58
--- /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;
+ }
+
OpenPOWER on IntegriCloud