[Oisf-devel] [PATCH 1/1] Prelude: fix test always returning true

Pierre Chifflier chifflier at wzdftpd.net
Thu Jun 2 13:49:15 UTC 2011


Add missing parenthesis to fix test in error handling code.

Signed-off-by: Pierre Chifflier <chifflier at wzdftpd.net>
---
 src/alert-prelude.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/alert-prelude.c b/src/alert-prelude.c
index f04821e..3ed0171 100644
--- a/src/alert-prelude.c
+++ b/src/alert-prelude.c
@@ -329,7 +329,7 @@ static int EventToSourceTarget(Packet *p, idmef_alert_t *alert)
         SCReturnInt(ret);
 
     ret = idmef_target_new_service(target, &service);
-    if ( ! ret < 0 )
+    if ( !(ret < 0) )
         SCReturnInt(ret);
 
     if ( p->tcph || p->udph )
-- 
1.7.5.3




More information about the Oisf-devel mailing list