Skip to content
Snippets Groups Projects
Commit 18164dec authored by Olle Johansson's avatar Olle Johansson
Browse files

Don't add headers to an uninitialized eq (from issue 7694 garyhai, but not

a resolution to that bug report)


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41437 65c4cc65-6c06-0410-ace0-fbb531ad65f3
parent 13eb698c
No related branches found
No related tags found
No related merge requests found
...@@ -7065,8 +7065,6 @@ static int transmit_refer(struct sip_pvt *p, const char *dest) ...@@ -7065,8 +7065,6 @@ static int transmit_refer(struct sip_pvt *p, const char *dest)
else else
snprintf(referto, sizeof(referto), "<sip:%s>", dest); snprintf(referto, sizeof(referto), "<sip:%s>", dest);
   
add_header(&req, "Max-Forwards", DEFAULT_MAX_FORWARDS);
/* save in case we get 407 challenge */ /* save in case we get 407 challenge */
sip_refer_allocate(p); sip_refer_allocate(p);
ast_copy_string(p->refer->refer_to, referto, sizeof(p->refer->refer_to)); ast_copy_string(p->refer->refer_to, referto, sizeof(p->refer->refer_to));
...@@ -7074,6 +7072,8 @@ static int transmit_refer(struct sip_pvt *p, const char *dest) ...@@ -7074,6 +7072,8 @@ static int transmit_refer(struct sip_pvt *p, const char *dest)
p->refer->status = REFER_SENT; /* Set refer status */ p->refer->status = REFER_SENT; /* Set refer status */
   
reqprep(&req, p, SIP_REFER, 0, 1); reqprep(&req, p, SIP_REFER, 0, 1);
add_header(&req, "Max-Forwards", DEFAULT_MAX_FORWARDS);
add_header(&req, "Refer-To", referto); add_header(&req, "Refer-To", referto);
add_header(&req, "Allow", ALLOWED_METHODS); add_header(&req, "Allow", ALLOWED_METHODS);
add_header(&req, "Supported", SUPPORTED_EXTENSIONS); add_header(&req, "Supported", SUPPORTED_EXTENSIONS);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment