src/sock_tcp.c
changeset 21 0911d0b828d4
parent 12 4147fae232d9
child 27 e6639132bead
--- a/src/sock_tcp.c	Sun Mar 01 00:34:33 2009 +0200
+++ b/src/sock_tcp.c	Sun Mar 01 01:48:14 2009 +0200
@@ -126,6 +126,9 @@
     // initialize base with sock_tcp_type
     sock_stream_init(SOCK_TCP_BASE(*sock_ptr), &sock_tcp_type);
 
+    // invalid fds are <0
+    (*sock_ptr)->fd = -1;
+
     // done
     return SUCCESS;
 }