Browse code

*** empty log message ***

Bogdan-Andrei Iancu authored on 27/11/2001 13:04:30
Showing 3 changed files
... ...
@@ -121,7 +121,8 @@ error:
121 121
 
122 122
 struct cell*  build_cell( struct s_table* hash_table , struct sip_msg* p_msg )
123 123
 {
124
-   struct cell*    new_cell;
124
+   struct cell*  new_cell;
125
+   int                i;
125 126
 
126 127
     /* do we have the source for the build process? */
127 128
    if (!p_msg)
... ...
@@ -140,6 +141,8 @@ struct cell*  build_cell( struct s_table* hash_table , struct sip_msg* p_msg )
140 141
    init_cell_lock(  new_cell );
141 142
    /* ref counter is 0 */
142 143
    /* all pointers from timers list tl are NULL */
144
+   for( i=0 ; i<NR_OF_TIMER_LISTS ; i++ )
145
+      new_cell->tl->payload = new_cell;
143 146
 
144 147
    /* inbound request */
145 148
    new_cell->inbound_request =  sip_msg_cloner(p_msg) ;
... ...
@@ -14,6 +14,7 @@ typedef struct {
14 14
 	int semaphore_index;
15 15
 } ser_lock_t;
16 16
 
17
+
17 18
 #include "h_table.h"
18 19
 
19 20
 /* Uni*x permissions for IPC */
... ...
@@ -30,7 +30,6 @@ typedef struct timer_link
30 30
    void                      *payload;
31 31
 }timer_link_type ;
32 32
 
33
-
34 33
 #include "lock.h"
35 34
 
36 35
 /* timer list: includes head, tail and protection semaphore */