[ds6-devel] nc6/src network.c,1.5,1.6

chris@deepspace6.net chris@deepspace6.net
Fri Dec 13 21:25:41 2002


Update of /cvs/nc6/src

Modified Files:
	network.c 
Log Message:
Fixed problem with connecting "UDP" sockets, caused by a bad integer check.


Index: network.c
===================================================================
RCS file: /cvs/nc6/src/network.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- network.c	9 Dec 2002 22:03:06 -0000	1.5
+++ network.c	13 Dec 2002 21:25:34 -0000	1.6
@@ -516,7 +516,7 @@
 		    (remote->address == NULL && remote->port == NULL) ||
 		    (is_allowed((struct sockaddr*)&dest, remote, attrs) == TRUE)) {
 
-			if (attrs->type == SOCK_DGRAM) {
+			if (attrs->type == UDP_SOCKET) {
 				/* connect the socket to ensure we only talk with this client */
 				err = connect(ns, (struct sockaddr*)&dest, destlen);
 				if (err != 0)



More information about the ds6-devel mailing list