sizeof for a stringfield is 4. Kinda low for reconstructing a field value.
authorTilghman Lesher <tilghman@meg.abyt.es>
Sat, 10 Jan 2009 01:42:45 +0000 (01:42 +0000)
committerTilghman Lesher <tilghman@meg.abyt.es>
Sat, 10 Jan 2009 01:42:45 +0000 (01:42 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@168334 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index b0075ad..227151d 100644 (file)
@@ -22050,7 +22050,7 @@ static struct sip_peer *build_peer(const char *name, struct ast_variable *v, str
        struct sip_peer tmp_peer;
        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 */