From: Nick Porter Date: Fri, 5 Mar 2021 15:03:52 +0000 (+0000) Subject: Correct value box foreach to use dlist functions (#3973) X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b7c4e5e652625e645b43e9ba196e8d4978ed74be;p=thirdparty%2Ffreeradius-server.git Correct value box foreach to use dlist functions (#3973) --- diff --git a/src/lib/util/value.h b/src/lib/util/value.h index b2b20e172ed..fb3bc3cb551 100644 --- a/src/lib/util/value.h +++ b/src/lib/util/value.h @@ -280,7 +280,7 @@ struct value_box_s { * * @{ */ -#define fr_value_box_foreach(_v, _iv) for (fr_value_box_t *_iv = _v; _iv; _iv = _iv->next) +#define fr_value_box_foreach(_v, _iv) for (fr_value_box_t *_iv = fr_dlist_head(_v); _iv; _iv = fr_dlist_next(_v, _iv)) /** Returns the number of boxes in a list of value boxes *