gnunet-svn
[Top][All Lists]
Advanced

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

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


From: gnunet
Subject: [GNUnet-SVN] r11703 - libmicrohttpd/src/daemon
Date: Sun, 13 Jun 2010 01:33:45 +0200

Author: grothoff
Date: 2010-06-13 01:33:45 +0200 (Sun, 13 Jun 2010)
New Revision: 11703

Modified:
   libmicrohttpd/src/daemon/daemon.c
Log:
check in case allocation failed

Modified: libmicrohttpd/src/daemon/daemon.c
===================================================================
--- libmicrohttpd/src/daemon/daemon.c   2010-06-12 23:28:36 UTC (rev 11702)
+++ libmicrohttpd/src/daemon/daemon.c   2010-06-12 23:33:45 UTC (rev 11703)
@@ -343,6 +343,8 @@
 {
   int num = 0;
 
+  if (list == NULL)
+    return 0;
   while ((list[num] != 0) && (num < MAX_ALGOS))
     num++;
   st->num_algorithms = num;




reply via email to

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