mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-07 18:38:02 +00:00
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
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user