[Reconnoiter-devel] [reconnoiter commit] r1313 - trunk/src

svn-commit at lists.omniti.com svn-commit at lists.omniti.com
Thu May 27 13:26:12 EDT 2010


Author: jesus
Date: 2010-05-27 13:26:12 -0400 (Thu, 27 May 2010)
New Revision: 1313

Modified:
   trunk/src/noit_filters.c
Log:
refs #284

Modified: trunk/src/noit_filters.c
===================================================================
--- trunk/src/noit_filters.c	2010-05-27 17:24:56 UTC (rev 1312)
+++ trunk/src/noit_filters.c	2010-05-27 17:26:12 UTC (rev 1313)
@@ -391,9 +391,12 @@
   char xpath[1024];
 
   info = noit_console_userdata_get(ncct, NOIT_CONF_T_USERDATA);
-  if(!info ||
-     (strncmp(info->path, "/filtersets/", strlen("/filtersets/")) &&
-      strcmp(info->path, "/filtersets"))) {
+  if(!info) {
+    nc_printf(ncct, "internal error\n");
+    goto cleanup;
+  }
+  if(strncmp(info->path, "/filtersets/", strlen("/filtersets/")) &&
+     strcmp(info->path, "/filtersets")) {
     nc_printf(ncct, "filterset only allows inside /filtersets (not %s)\n",
               info->path);
     goto cleanup;



More information about the Reconnoiter-devel mailing list