Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nathelper: initialize local variable #1661

Merged
merged 2 commits into from Oct 1, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/modules/nathelper/nathelper.c
Expand Up @@ -1529,7 +1529,7 @@ static inline int replace_sdp_ip(
body2.s = oldip.s + oldip.len;
body2.len = bodylimit - body2.s;
ret = alter_mediaip(
msg, &body2, &oldip, pf, &newip, pf, sdp_oldmediaip);
msg, &body1, &oldip, pf, &newip, pf, sdp_oldmediaip);
if(ret == -1) {
LM_ERR("can't alter '%s' IP\n", line);
return -1;
Expand Down Expand Up @@ -1644,7 +1644,7 @@ static int ki_fix_nated_sdp(sip_msg_t *msg, int level)
static int fix_nated_sdp_f(struct sip_msg *msg, char *str1, char *str2)
{
int level;
str ip;
str ip = {0,0};

if(fixup_get_ivalue(msg, (gparam_t *)str1, &level) != 0) {
LM_ERR("failed to get value for first parameter\n");
Expand Down