]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Regression after r297603 (Improve handling of REGISTER requests with multiple contact...
authorRichard Mudgett <rmudgett@digium.com>
Fri, 6 May 2011 17:59:05 +0000 (17:59 +0000)
committerRichard Mudgett <rmudgett@digium.com>
Fri, 6 May 2011 17:59:05 +0000 (17:59 +0000)
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

channels/chan_sip.c

index 9951c56cdf5aa75e2444f404e38dac9a0ca37f03..8e92c7910190fd1f0b9f0674f548c67792aad588 100644 (file)
@@ -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));