r11133 - prelude-lml/trunk/plugins/pcre

[email protected]
Newsgroups gmane.comp.security.ids.prelude.cvs
Message-ID <[email protected]>
Author: yoann
Date: 2009-04-09 11:41:53 +0200 (Thu, 09 Apr 2009)
New Revision: 11133

Modified:
   prelude-lml/trunk/plugins/pcre/rule-object.c
Log:
Remove un-needed check that would always evaluate to TRUE. Thanks
Steve Grubb <[email protected]> for reporting this problem (and
running flexelint on the Prelude sources)!

Modified: prelude-lml/trunk/plugins/pcre/rule-object.c
===================================================================
--- prelude-lml/trunk/plugins/pcre/rule-object.c	2009-04-09 09:41:49 UTC (rev 11132)
+++ prelude-lml/trunk/plugins/pcre/rule-object.c	2009-04-09 09:41:53 UTC (rev 11133)
@@ -88,7 +88,7 @@
         str = idmef_path_get_name(rule_object->object, idmef_path_get_depth(rule_object->object) - 1);
 
         ret = strcmp(str, "port");
-        if ( ret != 0 || (ret == 0 && isdigit((int) *valstr)) )
+        if ( ret != 0 || isdigit((int) *valstr) )
                 ret = idmef_value_new_from_path(&value, rule_object->object, valstr);
 
         else {

_______________________________________________
Prelude-cvslog site list
[email protected]
http://lists.prelude-ids.org/mailman/listinfo/prelude-cvslog
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.