gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r14174 - libmicrohttpd/src/daemon


From: gnunet
Subject: [GNUnet-SVN] r14174 - libmicrohttpd/src/daemon
Date: Fri, 14 Jan 2011 19:26:50 +0100

Author: grothoff
Date: 2011-01-14 19:26:50 +0100 (Fri, 14 Jan 2011)
New Revision: 14174

Modified:
   libmicrohttpd/src/daemon/connection.c
   libmicrohttpd/src/daemon/digestauth.c
Log:
nullcheck

Modified: libmicrohttpd/src/daemon/connection.c
===================================================================
--- libmicrohttpd/src/daemon/connection.c       2011-01-14 18:22:52 UTC (rev 
14173)
+++ libmicrohttpd/src/daemon/connection.c       2011-01-14 18:26:50 UTC (rev 
14174)
@@ -380,12 +380,12 @@
   return MHD_YES;
 }
 
+
 /**
- * Prepare the response buffer of this connection for
- * sending.  Assumes that the response mutex is
- * already held.  If the transmission is complete,
- * this function may close the socket (and return
- * MHD_NO).
+ * Prepare the response buffer of this connection for sending.
+ * Assumes that the response mutex is already held.  If the
+ * transmission is complete, this function may close the socket (and
+ * return MHD_NO).
  *
  * @return MHD_NO if readying the response failed
  */

Modified: libmicrohttpd/src/daemon/digestauth.c
===================================================================
--- libmicrohttpd/src/daemon/digestauth.c       2011-01-14 18:22:52 UTC (rev 
14173)
+++ libmicrohttpd/src/daemon/digestauth.c       2011-01-14 18:26:50 UTC (rev 
14174)
@@ -690,6 +690,11 @@
       return NULL;
     }
   user = strdup(decode);
+  if (NULL == user)
+    {
+      free (decode);
+      return NULL;
+    }
   user[separator - decode] = '\0'; /* cut off at ':' */
   if (password != NULL) 
     {




reply via email to

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