Browse code

- tm unixsock callback bug fixed (the callback can be called multiple times for retrans.)

Andrei Pelinescu-Onciul authored on 17/07/2004 19:11:45
Showing 2 changed files
... ...
@@ -45,7 +45,7 @@ export makefile_defs
45 45
 VERSION = 0
46 46
 PATCHLEVEL = 8
47 47
 SUBLEVEL =   13
48
-EXTRAVERSION = -dev-34
48
+EXTRAVERSION = -dev-35
49 49
 
50 50
 RELEASE=$(VERSION).$(PATCHLEVEL).$(SUBLEVEL)$(EXTRAVERSION)
51 51
 OS = $(shell uname -s | sed -e s/SunOS/solaris/ | tr "[A-Z]" "[a-z]")
... ...
@@ -461,6 +461,8 @@ static void callback(struct cell *t, int type, struct tmcb_params *ps)
461 461
 done:
462 462
 	unixsock_reply_sendto(to);
463 463
 	shm_free(to);
464
+	*ps->param=0; /* 0 it so the callback won't do anything if called
465
+					 for a retransmission */
464 466
 }
465 467
 
466 468