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
1.4
Olle Johansson 19 years ago
parent 13eb698ce7
commit 18164dec14

@ -7065,8 +7065,6 @@ static int transmit_refer(struct sip_pvt *p, const char *dest)
else
snprintf(referto, sizeof(referto), "<sip:%s>", dest);
add_header(&req, "Max-Forwards", DEFAULT_MAX_FORWARDS);
/* save in case we get 407 challenge */
sip_refer_allocate(p);
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)
p->refer->status = REFER_SENT; /* Set refer status */
reqprep(&req, p, SIP_REFER, 0, 1);
add_header(&req, "Max-Forwards", DEFAULT_MAX_FORWARDS);
add_header(&req, "Refer-To", referto);
add_header(&req, "Allow", ALLOWED_METHODS);
add_header(&req, "Supported", SUPPORTED_EXTENSIONS);

Loading…
Cancel
Save