Преглед изворни кода

Inserted callback parameters instead of NULL in completeion_cb calls

Nils Ohlmeier пре 22 година
родитељ
комит
0dd97a007d
1 измењених фајлова са 2 додато и 2 уклоњено
  1. 2 2
      modules/tm/t_reply.c

+ 2 - 2
modules/tm/t_reply.c

@@ -300,7 +300,7 @@ static int _reply_light( struct cell *trans, char* buf, unsigned int len,
 			DBG("DEBUG: local transaction completed from _reply\n");
 			callback_event( TMCB_LOCAL_COMPLETED, trans, FAKED_REPLY, code );
 			if (trans->completion_cb) 
-				trans->completion_cb( trans, FAKED_REPLY, code, 0 /* empty param */);
+				trans->completion_cb( trans, FAKED_REPLY, code, trans->cbp);
 		} else {
 			callback_event( TMCB_RESPONSE_OUT, trans, FAKED_REPLY, code );
 		}
@@ -1016,7 +1016,7 @@ enum rps local_reply( struct cell *t, struct sip_msg *p_msg, int branch,
 			callback_event( TMCB_LOCAL_COMPLETED, t, winning_msg, 
 				winning_code );
 			if (t->completion_cb) t->completion_cb( t, winning_msg, 
-						winning_code, 0 /* empty param */);
+						winning_code, t->cbp);
 		}
 	}
 	return reply_status;