Mercurial > hg > freeDiameter
changeset 910:8500947421cb
Fix bug in fd_dict_search for rules. Thank you Thomas for bug & fix.
author | Sebastien Decugis <sdecugis@freediameter.net> |
---|---|
date | Sat, 19 Jan 2013 17:12:25 +0100 |
parents | 047f99b09632 |
children | c9f86e8c45fe 64088de91f7f |
files | libfdproto/dictionary.c |
diffstat | 1 files changed, 1 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- 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; \