[asterisk-commits] russell: branch 1.4 r80390 - /branches/1.4/channels/chan_sip.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed Aug 22 16:00:44 CDT 2007


Author: russell
Date: Wed Aug 22 16:00:44 2007
New Revision: 80390

URL: http://svn.digium.com/view/asterisk?view=rev&rev=80390
Log:
Don't crash when using realtime in chan_sip without an insecure setting in the database.
(closes issue #10348, reported by link55, fixed by me)

Modified:
    branches/1.4/channels/chan_sip.c

Modified: branches/1.4/channels/chan_sip.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/channels/chan_sip.c?view=diff&rev=80390&r1=80389&r2=80390
==============================================================================
--- branches/1.4/channels/chan_sip.c (original)
+++ branches/1.4/channels/chan_sip.c Wed Aug 22 16:00:44 2007
@@ -15713,6 +15713,10 @@
 {
 	static int dep_insecure_very = 0;
 	static int dep_insecure_yes = 0;
+
+	if (ast_strlen_zero(value))
+		return;
+
 	if (!strcasecmp(value, "very")) {
 		ast_set_flag(flags, SIP_INSECURE_PORT | SIP_INSECURE_INVITE);
 		if(!dep_insecure_very) {




More information about the asterisk-commits mailing list