[ds6-devel] nc6/src network.c,1.17,1.18
chris@deepspace6.net
chris@deepspace6.net
Sat Dec 28 09:55:48 2002
- Previous message: [ds6-devel]
nc6/src circ_buf.c,1.10,1.11 circ_buf.h,1.9,1.10 readwrite.c,1.18,1.19
- Next message: [ds6-devel] nc6/src circ_buf.c,1.11,1.12 circ_buf.h,1.10,1.11
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
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);
}
- Previous message: [ds6-devel]
nc6/src circ_buf.c,1.10,1.11 circ_buf.h,1.9,1.10 readwrite.c,1.18,1.19
- Next message: [ds6-devel] nc6/src circ_buf.c,1.11,1.12 circ_buf.h,1.10,1.11
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the ds6-devel
mailing list