]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
don't allow "next" to alias "ref"
authorAlan T. DeKok <aland@freeradius.org>
Tue, 5 Nov 2019 02:18:38 +0000 (21:18 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Tue, 5 Nov 2019 02:18:38 +0000 (21:18 -0500)
so that group-type attributes can happily coexist with other ones

src/lib/util/dict.h

index c240c86e97544a1780cdb16932e4d88f65ef4c8c..b93cde3e78eceee1b93d8fa062bc8734190d2578 100644 (file)
@@ -119,13 +119,13 @@ struct dict_attr {
        union {
                struct {
                        fr_dict_attr_t const    **children;     //!< Children of this attribute.
-                       fr_dict_attr_t const    *next;          //!< Next child in bin.
                };
                struct {
                        fr_dict_t const         *dict;          //!< child dictionary
                        fr_dict_attr_t const    *ref;           //!< reference
                };
        };
+       fr_dict_attr_t const    *next;                          //!< Next child in bin.
 
 
        unsigned int            depth;                          //!< Depth of nesting for this attribute.