Skip to content

Commit

Permalink
Fixes realated to previous commit (double siptrace)
Browse files Browse the repository at this point in the history
(cherry picked from commit d4e8188)
  • Loading branch information
bogdan-iancu authored and razvancrainea committed Jan 12, 2015
1 parent 37523de commit 2ada3bf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions modules/siptrace/siptrace.c
Expand Up @@ -768,7 +768,7 @@ static void trace_transaction(struct dlg_cell* dlg, int type,
}while(1);

/* set the flag */
if ( dlgb.fetch_dlg_value( dlg, &st_flag_val, &avp_value.s, 0)!=0 )
if ( dlgb.fetch_dlg_value( dlg, &st_flag_val, &avp_value.s, 0)==0 )
params->msg->flags |= trace_flag;
params->msg->msg_flags |= FL_USE_SIPTRACE;
/* trace current request */
Expand Down Expand Up @@ -818,8 +818,8 @@ static int trace_dialog(struct sip_msg *msg)
}

/* any need to do tracing here ? check the triggers */
avp=search_first_avp(traced_user_avp_type, traced_user_avp,
&avp_value, 0);
avp = traced_user_avp<0 ? NULL : search_first_avp(traced_user_avp_type,
traced_user_avp, &avp_value, 0);
if (avp==NULL && (msg->flags&trace_flag)==0) {
LM_DBG("Nothing to trace here\n");
return -1;
Expand Down

0 comments on commit 2ada3bf

Please sign in to comment.