From 6e65bea242ff3a59130a7fa0aef0bf835dfbf585 Mon Sep 17 00:00:00 2001 From: Russell Bryant Date: Tue, 24 Oct 2006 00:52:06 +0000 Subject: [PATCH] Fix a seg fault on a registration. Line 7706, in parse_register_contact, explicitly passes NULL as the "pass" argument to this function. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@46055 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- channels/chan_sip.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/channels/chan_sip.c b/channels/chan_sip.c index d888fa19ae..4dd79a190e 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -2254,9 +2254,9 @@ static int parse_uri(char *uri, char *scheme, int error = 0; /* init field as required */ - if (*pass) + if (pass && *pass) *pass = ""; - if (*port) + if (port && *port) *port = ""; name = strsep(&uri, ";"); /* remove options */ if (scheme) {