gnunet-svn
[Top][All Lists]
Advanced

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

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


From: gnunet
Subject: [GNUnet-SVN] r6626 - libmicrohttpd/src/daemon
Date: Wed, 26 Mar 2008 08:47:03 -0600 (MDT)

Author: grothoff
Date: 2008-03-26 08:47:03 -0600 (Wed, 26 Mar 2008)
New Revision: 6626

Modified:
   libmicrohttpd/src/daemon/connection.c
Log:
fix

Modified: libmicrohttpd/src/daemon/connection.c
===================================================================
--- libmicrohttpd/src/daemon/connection.c       2008-03-25 21:39:24 UTC (rev 
6625)
+++ libmicrohttpd/src/daemon/connection.c       2008-03-26 14:47:03 UTC (rev 
6626)
@@ -1220,8 +1220,10 @@
       connection->last = last;
       return;                   /* possibly more than 2 lines... */
     }
-  if (MHD_NO == connection_add_header (connection,
-                                       last, connection->colon, kind))
+  if ( (last != NULL) &&
+       (connection->colon != NULL) &&
+       (MHD_NO == connection_add_header (connection,
+                                        last, connection->colon, kind)) )
     {
       excessive_data_handler (connection, MHD_HTTP_REQUEST_ENTITY_TOO_LARGE);
       return;





reply via email to

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