Skip to content

Commit

Permalink
sipcapture: use only known INET family
Browse files Browse the repository at this point in the history
Fixes coverity CID 150498
  • Loading branch information
razvancrainea committed Oct 24, 2016
1 parent 2aabf84 commit d061712
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modules/sipcapture/sipcapture.c
Expand Up @@ -4322,8 +4322,9 @@ static void hepv3_to_buf(struct hepv3* h3, char* buf, int *len)
if (h3->hg.ip_family.data != AF_INET && h3->hg.ip_family.data != AF_INET6) {
LM_ERR("Unknown family <%d>! Will use IPv4\n", h3->hg.ip_family.data);
af = AF_INET;
} else {
af = h3->hg.ip_family.data;
}
af = h3->hg.ip_family.data;
}


Expand Down

0 comments on commit d061712

Please sign in to comment.