|
@@ -184,14 +184,14 @@ int register_tmcb( struct sip_msg* p_msg, struct cell *t, int types,
|
|
return E_BUG;
|
|
return E_BUG;
|
|
}
|
|
}
|
|
|
|
|
|
- if (types&TMCB_REQUEST_IN) {
|
|
|
|
|
|
+ if ((types!=TMCB_MAX) && (types&TMCB_REQUEST_IN)) {
|
|
if (types!=TMCB_REQUEST_IN) {
|
|
if (types!=TMCB_REQUEST_IN) {
|
|
LOG(L_CRIT, "BUG:tm:register_tmcb: callback type TMCB_REQUEST_IN "
|
|
LOG(L_CRIT, "BUG:tm:register_tmcb: callback type TMCB_REQUEST_IN "
|
|
"can't be register along with types\n");
|
|
"can't be register along with types\n");
|
|
return E_BUG;
|
|
return E_BUG;
|
|
}
|
|
}
|
|
cb_list = req_in_tmcb_hl;
|
|
cb_list = req_in_tmcb_hl;
|
|
- }else if (types & TMCB_LOCAL_REQUEST_IN) {
|
|
|
|
|
|
+ }else if ((types!=TMCB_MAX) && (types & TMCB_LOCAL_REQUEST_IN)) {
|
|
if (types!=TMCB_LOCAL_REQUEST_IN) {
|
|
if (types!=TMCB_LOCAL_REQUEST_IN) {
|
|
LOG(L_CRIT, "BUG:tm:register_tmcb: callback type"
|
|
LOG(L_CRIT, "BUG:tm:register_tmcb: callback type"
|
|
" TMCB_LOCAL_REQUEST_IN can't be register along with"
|
|
" TMCB_LOCAL_REQUEST_IN can't be register along with"
|