Skip to content

Commit

Permalink
debugger: fix orig offset computation inside w_dbg_sip_msg()
Browse files Browse the repository at this point in the history
  • Loading branch information
miconda committed Jul 21, 2017
1 parent 4363b86 commit 06e1ad1
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/modules/debugger/debugger_mod.c
Expand Up @@ -547,9 +547,11 @@ static int w_dbg_sip_msg(struct sip_msg* msg, char *level, char *facility)
}

/* skip original uri */
if (msg->new_uri.s){
orig_offs=msg->first_line.u.request.uri.s - msg->buf;
orig_offs=msg->first_line.u.request.uri.len;
if(msg->first_line.type == SIP_REQUEST) {
if(msg->new_uri.s) {
orig_offs = msg->first_line.u.request.uri.s - msg->buf;
orig_offs += msg->first_line.u.request.uri.len;
}
}

/* alloc private mem and copy lumps */
Expand Down

0 comments on commit 06e1ad1

Please sign in to comment.