Module: sip-router
Branch: master
Commit: 87da891388c3e76c80ac677e7b2342ce9f86a3f1
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=87da891…
Author: Juha Heinanen <jh(a)tutpro.com>
Committer: Juha Heinanen <jh(a)tutpro.com>
Date: Sun Apr 7 18:01:19 2013 +0300
modules/registrar: b/f route param was passed uninitialized to parse_rr_body
---
modules/registrar/save.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/modules/registrar/save.c b/modules/registrar/save.c
index 54de08b..6c29403 100644
--- a/modules/registrar/save.c
+++ b/modules/registrar/save.c
@@ -879,6 +879,7 @@ int save(struct sip_msg* _m, udomain_t* _d, int _cflags, str *_uri)
/* Outbound supported on server, and more than one Via: - not the first hop */
if (!(parse_headers(_m, HDR_PATH_F, 0) == -1 || _m->path == 0)) {
+ route = (rr_t *)0;
if (parse_rr_body(_m->path->body.s, _m->path->body.len, &route) <
0) {
LM_ERR("Failed to parse Path: header body\n");
goto error;