]> git.sesse.net Git - vlc/commitdiff
Fixed an IPv6-related bug (thanks Xag).
authorChristophe Massiot <massiot@videolan.org>
Mon, 23 Dec 2002 15:39:07 +0000 (15:39 +0000)
committerChristophe Massiot <massiot@videolan.org>
Mon, 23 Dec 2002 15:39:07 +0000 (15:39 +0000)
modules/access/http.c

index d25eb09c6b0428b16a33c640a8e0c2cfbebb98aa..5ff08b0302dc71593407bcb5051e53192ff233b3 100644 (file)
@@ -2,7 +2,7 @@
  * http.c: HTTP access plug-in
  *****************************************************************************
  * Copyright (C) 2001, 2002 VideoLAN
- * $Id: http.c,v 1.18 2002/12/19 17:29:13 massiot Exp $
+ * $Id: http.c,v 1.19 2002/12/23 15:39:07 massiot Exp $
  *
  * Authors: Christophe Massiot <massiot@via.ecp.fr>
  *
@@ -437,6 +437,14 @@ static int Open( vlc_object_t *p_this )
 
     while( *psz_parser && *psz_parser != ':' && *psz_parser != '/' )
     {
+        if( *psz_parser == '[' )
+        {
+            /* IPv6 address */
+            while( *psz_parser && *psz_parser != ']' )
+            {
+                psz_parser++;
+            }
+        }
         psz_parser++;
     }