Browse code

modules/registrar: b/f route param was passed uninitialized to parse_rr_body

Juha Heinanen authored on 07/04/2013 15:01:19
Showing 1 changed files
... ...
@@ -879,6 +879,7 @@ int save(struct sip_msg* _m, udomain_t* _d, int _cflags, str *_uri)
879 879
 		/* Outbound supported on server, and more than one Via: - not the first hop */
880 880
 
881 881
 		if (!(parse_headers(_m, HDR_PATH_F, 0) == -1 || _m->path == 0)) {
882
+		        route = (rr_t *)0;
882 883
 			if (parse_rr_body(_m->path->body.s, _m->path->body.len, &route) < 0) {
883 884
 				LM_ERR("Failed to parse Path: header body\n");
884 885
 				goto error;