fix extraneous < in sip url parser
This commit is contained in:
parent
b1f382c67e
commit
49700ecf0f
|
@ -1495,7 +1495,9 @@ char *sofia_glue_get_url_from_contact(char *buf, uint8_t to_dup)
|
||||||
buf++;
|
buf++;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((url = strchr(buf, '<')) && (e = switch_find_end_paren(url, '<', '>'))) {
|
url = strchr(buf, '<');
|
||||||
|
|
||||||
|
if (url && (e = switch_find_end_paren(url, '<', '>'))) {
|
||||||
url++;
|
url++;
|
||||||
if (to_dup) {
|
if (to_dup) {
|
||||||
url = strdup(url);
|
url = strdup(url);
|
||||||
|
@ -1504,6 +1506,8 @@ char *sofia_glue_get_url_from_contact(char *buf, uint8_t to_dup)
|
||||||
|
|
||||||
*e = '\0';
|
*e = '\0';
|
||||||
} else {
|
} else {
|
||||||
|
if (url) buf++;
|
||||||
|
|
||||||
if (to_dup) {
|
if (to_dup) {
|
||||||
url = strdup(buf);
|
url = strdup(buf);
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue