gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r12861 - libmicrohttpd/src/testcurl


From: gnunet
Subject: [GNUnet-SVN] r12861 - libmicrohttpd/src/testcurl
Date: Mon, 6 Sep 2010 14:46:14 +0200

Author: grothoff
Date: 2010-09-06 14:46:14 +0200 (Mon, 06 Sep 2010)
New Revision: 12861

Modified:
   libmicrohttpd/src/testcurl/daemontest_digestauth.c
Log:
check that username matches

Modified: libmicrohttpd/src/testcurl/daemontest_digestauth.c
===================================================================
--- libmicrohttpd/src/testcurl/daemontest_digestauth.c  2010-09-06 12:22:23 UTC 
(rev 12860)
+++ libmicrohttpd/src/testcurl/daemontest_digestauth.c  2010-09-06 12:46:14 UTC 
(rev 12861)
@@ -78,7 +78,8 @@
   int ret;
 
   username = MHD_digest_auth_get_username(connection);
-  if (username == NULL) 
+  if ( (username == NULL) ||
+       (0 != strcmp (username, "testuser")) )
     {
       response = MHD_create_response_from_data(strlen (DENIED), 
                                               DENIED,




reply via email to

[Prev in Thread] Current Thread [Next in Thread]