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

RTP: fix parsing IPv6 addresses

(cherry picked from commit cf2384ec)
parent 2d66841a
......@@ -306,7 +306,7 @@ static int extract_port (char **phost)
if (host[0] == '[')
{
host = *++phost; /* skip '[' */
host = ++*phost; /* skip '[' */
port = strchr (host, ']');
if (port)
*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