Browse code

Inserted callback parameters instead of NULL in completeion_cb calls

Nils Ohlmeier authored on 17/08/2003 22:49:52
Showing 1 changed files
... ...
@@ -300,7 +300,7 @@ static int _reply_light( struct cell *trans, char* buf, unsigned int len,
300 300
 			DBG("DEBUG: local transaction completed from _reply\n");
301 301
 			callback_event( TMCB_LOCAL_COMPLETED, trans, FAKED_REPLY, code );
302 302
 			if (trans->completion_cb) 
303
-				trans->completion_cb( trans, FAKED_REPLY, code, 0 /* empty param */);
303
+				trans->completion_cb( trans, FAKED_REPLY, code, trans->cbp);
304 304
 		} else {
305 305
 			callback_event( TMCB_RESPONSE_OUT, trans, FAKED_REPLY, code );
306 306
 		}
... ...
@@ -1016,7 +1016,7 @@ enum rps local_reply( struct cell *t, struct sip_msg *p_msg, int branch,
1016 1016
 			callback_event( TMCB_LOCAL_COMPLETED, t, winning_msg, 
1017 1017
 				winning_code );
1018 1018
 			if (t->completion_cb) t->completion_cb( t, winning_msg, 
1019
-						winning_code, 0 /* empty param */);
1019
+						winning_code, t->cbp);
1020 1020
 		}
1021 1021
 	}
1022 1022
 	return reply_status;