]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Merged revisions 168334 via svnmerge from
authorTilghman Lesher <tilghman@meg.abyt.es>
Sat, 10 Jan 2009 01:43:51 +0000 (01:43 +0000)
committerTilghman Lesher <tilghman@meg.abyt.es>
Sat, 10 Jan 2009 01:43:51 +0000 (01:43 +0000)
https://origsvn.digium.com/svn/asterisk/trunk

........
  r168334 | tilghman | 2009-01-09 19:42:45 -0600 (Fri, 09 Jan 2009) | 2 lines

  sizeof for a stringfield is 4.  Kinda low for reconstructing a field value.
........

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@168335 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index 92cc10fb4fb0119daa060ff1e7b7f4b3b1ec9bd4..f2419acd7aab6ee9eb313f432a6036f647b330fb 100644 (file)
@@ -20570,7 +20570,7 @@ static struct sip_peer *build_peer(const char *name, struct ast_variable *v, str
        char callback[256] = "";
        const char *srvlookup = NULL;
        static int deprecation_warning = 1;
-       struct ast_str *fullcontact = ast_str_alloca(sizeof(peer->fullcontact));
+       struct ast_str *fullcontact = ast_str_alloca(512);
 
        if (!realtime || ast_test_flag(&global_flags[1], SIP_PAGE2_RTCACHEFRIENDS)) {
                /* Note we do NOT use find_peer here, to avoid realtime recursion */