Skip to content
Snippets Groups Projects
Commit f30de5ef authored by David Vossel's avatar David Vossel
Browse files

parse_moved_contact tries to parse contact_name twice

parse_moved_contact attempts to remove a quoted string
twice, and the first try wasn't even being done correctly.


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@244769 65c4cc65-6c06-0410-ace0-fbb531ad65f3
parent 962b1a22
Branches
Tags
No related merge requests found
......@@ -16559,14 +16559,6 @@ static void parse_moved_contact(struct sip_pvt *p, struct sip_request *req, char
if ((separator = strchr(contact, ',')))
*separator = '\0';
 
/* ooh, a name */
if (*contact == '"') {
contact_name = contact + 1;
if ((separator = strchr(contact_name, '"'))) {
*separator++ = '\0';
}
}
contact_number = get_in_brackets(contact);
if ((trans = strcasestr(contact_number, ";transport="))) {
trans += 11;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment