Commit cf2384ec authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

RTP: fix parsing IPv6 addresses

parent 7cdc5d03
...@@ -306,7 +306,7 @@ static int extract_port (char **phost) ...@@ -306,7 +306,7 @@ static int extract_port (char **phost)
if (host[0] == '[') if (host[0] == '[')
{ {
host = *++phost; /* skip '[' */ host = ++*phost; /* skip '[' */
port = strchr (host, ']'); port = strchr (host, ']');
if (port) if (port)
*port++ = '\0'; /* skip ']' */ *port++ = '\0'; /* skip ']' */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment