Просмотр исходного кода

* Fixed a bug with implied "ignore" in check_trace()

svn: 585
Bryan Drewery 22 лет назад
Родитель
Сommit
d94634f3b6
3 измененных файлов с 4 добавлено и 4 удалено
  1. 1 1
      src/main.c
  2. 2 2
      src/misc.c
  3. 1 1
      src/proto.h

+ 1 - 1
src/main.c

@@ -449,7 +449,7 @@ void core_10secondly()
     check_promisc();
 
   if (curcheck == 1)
-    check_trace(0);
+    check_trace();
 
 #ifdef LEAF
   if (localhub) {

+ 2 - 2
src/misc.c

@@ -1058,13 +1058,13 @@ void got_trace(int z)
 }
 #endif /* S_ANTITRACE */
 
-void check_trace(int n)
+void check_trace()
 {
 #ifdef S_ANTITRACE
   int x, parent, i;
   struct sigaction sv, *oldsv = NULL;
 
-  if (n && !strcmp((char *) CFG_TRACE.ldata ? CFG_TRACE.ldata : CFG_TRACE.gdata ? CFG_TRACE.gdata : "ignore", "ignore"))
+  if (!strcmp((char *) CFG_TRACE.ldata ? CFG_TRACE.ldata : CFG_TRACE.gdata ? CFG_TRACE.gdata : "ignore", "ignore"))
     return;
   parent = getpid();
 #ifdef __linux__

+ 1 - 1
src/proto.h

@@ -257,7 +257,7 @@ void detected(int, char *);
 int goodpass(char *, int, char *);
 void check_last();
 void check_promisc();
-void check_trace(int);
+void check_trace();
 void check_processes();
 void makeplaincookie(char *, char *, char *);
 int isupdatehub();