[ds6-devel] nc6/src network.c,1.17,1.18

chris@deepspace6.net chris@deepspace6.net
Sat Dec 28 09:55:48 2002


Update of /cvs/nc6/src

Modified Files:
	network.c 
Log Message:
Was freeing getaddrinfo results and then using them again.  Fixed.


Index: network.c
===================================================================
RCS file: /cvs/nc6/src/network.c,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -d -r1.17 -r1.18
--- network.c	24 Dec 2002 21:05:37 -0000	1.17
+++ network.c	28 Dec 2002 09:55:45 -0000	1.18
@@ -306,12 +306,12 @@
 		     (ptr->ai_socktype == SOCK_STREAM)? "stream":"datagram");
 	}
 
-	/* cleanup addrinfo structure */
-	freeaddrinfo(res);
-
 	/* fill out the io_streams for the local and remote */
 	ios_assign_stdio(&(attrs->local_stream));
 	ios_assign_socket(&(attrs->remote_stream), fd, ptr->ai_socktype);
+
+	/* cleanup addrinfo structure */
+	freeaddrinfo(res);
 }
 
 



More information about the ds6-devel mailing list