Skip to content

Commit

Permalink
[sipcapture] memset contact uri structure to 0
Browse files Browse the repository at this point in the history
(cherry picked from commit ac66dc14bb736bb5afd70d923db7e7fa065462ff)
  • Loading branch information
ionutrazvanionita committed Oct 5, 2016
1 parent 817d16a commit c999663
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions modules/sipcapture/sipcapture.c
Expand Up @@ -1131,6 +1131,7 @@ static int sip_capture(struct sip_msg *msg, char *s1, char *s2)

cb = (contact_body_t*)msg->contact->parsed;

memset(&contact, 0, sizeof(struct sip_uri));
if(cb && cb->contacts) {
if(parse_uri( cb->contacts->uri.s, cb->contacts->uri.len, &contact)<0){
LM_ERR("bad contact dropping packet\n");
Expand Down

0 comments on commit c999663

Please sign in to comment.