]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Correct value box foreach to use dlist functions (#3973)
authorNick Porter <nick@portercomputing.co.uk>
Fri, 5 Mar 2021 15:03:52 +0000 (15:03 +0000)
committerGitHub <noreply@github.com>
Fri, 5 Mar 2021 15:03:52 +0000 (15:03 +0000)
src/lib/util/value.h

index b2b20e172edce94c73dcdba675befe6e58a48eba..fb3bc3cb551a677e62b1f1db59fa7c9d488c3827 100644 (file)
@@ -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
  *