]> git.sesse.net Git - vlc/commitdiff
* modules/access/http.c
authorBenjamin Pracht <bigben@videolan.org>
Sat, 2 Aug 2003 19:30:35 +0000 (19:30 +0000)
committerBenjamin Pracht <bigben@videolan.org>
Sat, 2 Aug 2003 19:30:35 +0000 (19:30 +0000)
      - Didn't  take into consideration  a little change of  behavior between config_GetPsz and var_Get during my last commit, so that we were sending authentification information even if there wasn't any.

modules/access/http.c

index cefda1c5363592b28f7862918ebce2db8d158604..ecfc62041ff00768c70a7b6f57ed6e41bd5f3160 100644 (file)
@@ -2,7 +2,7 @@
  * http.c: HTTP access plug-in
  *****************************************************************************
  * Copyright (C) 2001, 2002 VideoLAN
- * $Id: http.c,v 1.42 2003/08/01 09:45:34 sam Exp $
+ * $Id: http.c,v 1.43 2003/08/02 19:30:35 bigben Exp $
  *
  * Authors: Christophe Massiot <massiot@via.ecp.fr>
  *
@@ -606,7 +606,7 @@ static int Open( vlc_object_t *p_this )
 
     /* Handle autehtification */
 
-    if ( psz_user == NULL )
+   if ( !psz_user )
     {
         var_Create( p_input, "http-user", VLC_VAR_STRING | VLC_VAR_DOINHERIT );
         var_Get( p_input, "http-user", &val );
@@ -617,7 +617,7 @@ static int Open( vlc_object_t *p_this )
         psz_pwd = val.psz_string;
     }
 
-    if (psz_user != NULL)
+    if ( *psz_user )
     {
         char psz_user_pwd[MAX_QUERY_SIZE];
         msg_Dbg( p_input, "authenticating, user=%s, password=%s",