This fixes SIP subscriptions in trunk.
authorRussell Bryant <russell@russellbryant.com>
Tue, 16 Oct 2007 20:32:16 +0000 (20:32 +0000)
committerRussell Bryant <russell@russellbryant.com>
Tue, 16 Oct 2007 20:32:16 +0000 (20:32 +0000)
Don't improperly memset() over an ast_str.  This was leftover from before it
got changed to use ast_str.

(closes issue #11003, reported by pj)
(closes issue #10770, reported by yehavi)
(patched by me)

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

channels/chan_sip.c

index 7546f0b..93a7146 100644 (file)
@@ -7815,7 +7815,6 @@ static int transmit_state_notify(struct sip_pvt *p, int state, int full, int tim
 
        memset(from, 0, sizeof(from));
        memset(to, 0, sizeof(to));
-       memset(tmp, 0, sizeof(tmp));
 
        switch (state) {
        case (AST_EXTENSION_RINGING | AST_EXTENSION_INUSE):