1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-05 22:43:24 +00:00
freebsd-ports/net/scotty/files/patch-ab
1997-03-01 20:05:41 +00:00

21 lines
607 B
Plaintext
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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;
}