[Oisf-devel] [PATCH 1/1] Prelude: fix test always returning true
Pierre Chifflier
chifflier at wzdftpd.net
Sat Jun 4 06:52:49 UTC 2011
Fix wrong logic in test for 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..b250e6b 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