From: Richard Mudgett Date: Fri, 6 May 2011 17:59:05 +0000 (+0000) Subject: Regression after r297603 (Improve handling of REGISTER requests with multiple contact... X-Git-Tag: 1.4.42-rc1~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bdf971df607c1bd5eaffdd3b907067c60f252052;p=thirdparty%2Fasterisk.git Regression after r297603 (Improve handling of REGISTER requests with multiple contact headers.) Uninitialized variable. (issue #18640) (closes issue #18785) Reported by: pnlarsson Patches: issue18785_enegaard.patch uploaded by enegaard (license 1197) git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@317719 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 9951c56cdf..8e92c79101 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -9040,7 +9040,7 @@ static enum parse_register_result parse_register_contact(struct sip_pvt *pvt, st char *firstcuri = NULL; int start = 0; int wildcard_found = 0; - int single_binding_found; + int single_binding_found = 0; ast_copy_string(contact, __get_header(req, "Contact", &start), sizeof(contact));