Author: baggins Date: Tue May 8 11:50:17 2007 GMT Module: SOURCES Tag: HEAD ---- Log message: - A couple ntohs() were needed in bindresvport_sa()
---- Files affected: SOURCES: libtirpc-ntohs.patch (NONE -> 1.1) (NEW) ---- Diffs: ================================================================ Index: SOURCES/libtirpc-ntohs.patch diff -u /dev/null SOURCES/libtirpc-ntohs.patch:1.1 --- /dev/null Tue May 8 13:50:17 2007 +++ SOURCES/libtirpc-ntohs.patch Tue May 8 13:50:12 2007 @@ -0,0 +1,21 @@ +diff --git a/src/bindresvport.c b/src/bindresvport.c +index bc75d29..6aac03c 100644 +--- a/src/bindresvport.c ++++ b/src/bindresvport.c +@@ -101,14 +101,14 @@ bindresvport_sa(sd, sa) + case AF_INET: + sin = (struct sockaddr_in *)sa; + salen = sizeof(struct sockaddr_in); +- port = sin->sin_port; ++ port = ntohs(sin->sin_port); + portp = &sin->sin_port; + break; + #ifdef INET6 + case AF_INET6: + sin6 = (struct sockaddr_in6 *)sa; + salen = sizeof(struct sockaddr_in6); +- port = sin6->sin6_port; ++ port = ntohs(sin6->sin6_port); + portp = &sin6->sin6_port; + break; + #endif ================================================================ _______________________________________________ pld-cvs-commit mailing list [email protected] http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit
