Browse code

damocles aborts returned to be more strict

Jiri Kuthan authored on 25/06/2003 14:24:49
Showing 2 changed files
... ...
@@ -867,7 +867,7 @@ int t_check( struct sip_msg* p_msg , int *param_branch )
867 867
 
868 868
 		}
869 869
 #ifdef EXTRA_DEBUG
870
-		if ( T && T!=T_UNDEFINED && T->damocles==1) {
870
+		if ( T && T!=T_UNDEFINED && T->damocles) {
871 871
 			LOG( L_ERR, "ERROR: transaction %p scheduled for deletion "
872 872
 				"and called from t_check\n", T);
873 873
 			abort();
... ...
@@ -266,7 +266,7 @@ inline static void retransmission_handler( void *attr)
266 266
 
267 267
 	r_buf = (struct retr_buf*)attr;
268 268
 #ifdef EXTRA_DEBUG
269
-	if (r_buf->my_T->damocles==1) {
269
+	if (r_buf->my_T->damocles) {
270 270
 		LOG( L_ERR, "ERROR: transaction %p scheduled for deletion and"
271 271
 			" called from RETR timer\n",r_buf->my_T);
272 272
 		abort();
... ...
@@ -313,7 +313,7 @@ inline static void final_response_handler( void *attr)
313 313
 	t=r_buf->my_T;
314 314
 
315 315
 #	ifdef EXTRA_DEBUG
316
-	if (t->damocles==1) 
316
+	if (t->damocles) 
317 317
 	{
318 318
 		LOG( L_ERR, "ERROR: transaction %p scheduled for deletion and"
319 319
 			" called from FR timer\n",r_buf->my_T);
... ...
@@ -395,7 +395,7 @@ inline static void wait_handler( void *attr)
395 395
 	struct cell *p_cell = (struct cell*)attr;
396 396
 
397 397
 #ifdef EXTRA_DEBUG
398
-	if (p_cell->damocles==1) {
398
+	if (p_cell->damocles) {
399 399
 		LOG( L_ERR, "ERROR: transaction %p scheduled for deletion and"
400 400
 			" called from WAIT timer\n",p_cell);
401 401
 		abort();