Skip to content

Commit 907884b

Browse files
committed
Add box to list after it's been populated
fr_redis_reply_to_value_box calls fr_value_box_init once the type is known - which resets list membership pointers.
1 parent 485ff34 commit 907884b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/redis/redis.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,10 +335,10 @@ int fr_redis_reply_to_value_box(TALLOC_CTX *ctx, fr_value_box_t *out, redisReply
335335
fr_value_box_list_talloc_free(&out->vb_group);
336336
return -1;
337337
}
338-
fr_value_box_list_insert_tail(&out->vb_group, vb);
339338

340339
if (fr_redis_reply_to_value_box(vb, vb, reply->element[i],
341340
FR_TYPE_VOID, NULL, box_error, shallow) < 0) goto array_error;
341+
fr_value_box_list_insert_tail(&out->vb_group, vb);
342342
}
343343
}
344344
}

0 commit comments

Comments
 (0)