# HG changeset patch # User Sebastien Decugis # Date 1358611945 -3600 # Node ID 8500947421cb412b5f4f2dfffdf1a35b6fb369e0 # Parent 047f99b0963241b6a5b65ce04557f9d9ca654646 Fix bug in fd_dict_search for rules. Thank you Thomas for bug & fix. diff -r 047f99b09632 -r 8500947421cb libfdproto/dictionary.c --- a/libfdproto/dictionary.c Sat Jan 19 16:42:57 2013 +0100 +++ b/libfdproto/dictionary.c Sat Jan 19 17:12:25 2013 +0100 @@ -642,7 +642,7 @@ ret = ENOENT; \ } -/* For search of AVP name in rule lists. */ +/* For search of AVP name in rule lists -- the list is not ordered by AVP names! */ #define SEARCH_ruleavpname( str, strlen, sentinel ) { \ char * __str = (char *) (str); \ size_t __strlen = (size_t) (strlen); \ @@ -658,8 +658,6 @@ *result = _O(__li->o); \ goto end; \ } \ - if (__cmp < 0) \ - break; \ } \ if (result) \ *result = NULL; \