[vlc-devel] [PATCH]: Fix not-parsing server-address string
Gerrit Renker
gerrit at erg.abdn.ac.uk
Mon Jul 30 15:58:31 CEST 2007
This fixes a bug in parsing URLs of the type
udp:[serveraddr[:serverport]][@[bindaddr]:[bindport]]
udplite:[serveraddr[:serverport]][@[bindaddr]:[bindport]]
=> The problem is that psz_parser is not reset to the begin
of the string after parsing the bindaddr/bindport part after the `@'.
This means that a string `SERVERADDR:SERVERPORT' will not be broken
into port/hostname.
Index: modules/access/udp.c
===================================================================
--- modules/access/udp.c (revision 20910)
+++ modules/access/udp.c (working copy)
@@ -201,7 +201,7 @@
}
}
- psz_server_addr = psz_name;
+ psz_server_addr = psz_parser = psz_name;
if( *psz_server_addr == '[' )
/* skips bracket'd IPv6 address */
psz_parser = strchr( psz_name, ']' );
_______________________________________________
vlc-devel mailing list
vlc-devel at videolan.org
http://mailman.videolan.org/listinfo/vlc-devel
More information about the vlc-devel
mailing list