fixes ipv6 in parse_uri

sayer/1.4-spce2.6
Raphael Coeffic 16 years ago
parent 38698f8882
commit 6907a1db89

@ -54,6 +54,7 @@ static int parse_sip_uri(sip_uri* uri, const char* beg, int len)
URI_USER=0,
URI_PW,
URI_HOST,
URI_HOST_V6,
URI_PORT,
URI_PNAME,
URI_PVALUE,
@ -247,6 +248,21 @@ static int parse_sip_uri(sip_uri* uri, const char* beg, int len)
break;
}
break;
case '[':
switch(st){
case URI_HOST:
st = URI_HOST_V6;
break;
}
break;
case ']':
switch(st){
case URI_HOST_V6:
st = URI_HOST;
break;
}
break;
}
}

Loading…
Cancel
Save