Browse code

- fixed tcp bug (wrong thing dec. on eof/error)

Andrei Pelinescu-Onciul authored on 13/06/2005 17:59:21
Showing 2 changed files
... ...
@@ -55,7 +55,7 @@ MAIN_NAME=ser
55 55
 #version number
56 56
 VERSION = 0
57 57
 PATCHLEVEL = 9
58
-SUBLEVEL = 2
58
+SUBLEVEL = 3
59 59
 EXTRAVERSION = 
60 60
 
61 61
 RELEASE=$(VERSION).$(PATCHLEVEL).$(SUBLEVEL)$(EXTRAVERSION)
... ...
@@ -1189,7 +1189,7 @@ void tcp_main_loop()
1189 1189
 					case CONN_DESTROY:
1190 1190
 					case CONN_EOF:
1191 1191
 						/* WARNING: this will auto-dec. refcnt! */
1192
-						tcp_children[pt[r].idx].busy--;
1192
+						tcp_children[r].busy--;
1193 1193
 						if (tcpconn){
1194 1194
 							if (tcpconn->s!=-1)
1195 1195
 								FD_CLR(tcpconn->s, &master_set);