[sr-dev] git:master: b/f: Initialize rtpp_set_list properly (set it to 0), this can otherwise cause errors.

admin at sip-router.org admin at sip-router.org
Wed Apr 3 17:15:41 CEST 2013


Module: sip-router
Branch: master
Commit: 4ae14b095cb0a24f743a6c90db2f273dcfb163aa
URL:    http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=4ae14b095cb0a24f743a6c90db2f273dcfb163aa

Author: Carsten Bock <carsten at ng-voice.com>
Committer: Carsten Bock <carsten at ng-voice.com>
Date:   Wed Apr  3 16:57:44 2013 +0200

b/f: Initialize rtpp_set_list properly (set it to 0), this can otherwise cause errors.

---

 modules/rtpproxy/rtpproxy.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/modules/rtpproxy/rtpproxy.c b/modules/rtpproxy/rtpproxy.c
index 0f92814..03ad485 100644
--- a/modules/rtpproxy/rtpproxy.c
+++ b/modules/rtpproxy/rtpproxy.c
@@ -911,6 +911,7 @@ mod_init(void)
 		LM_ERR("no shm memory for rtpp_set_list\n");
 		return -1;
 	}
+	memset(rtpp_set_list, 0, sizeof(struct rtpp_set_head));
 
 	if (nortpproxy_str.s==NULL || nortpproxy_str.s[0]==0) {
 		nortpproxy_str.len = 0;




More information about the sr-dev mailing list