]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Ensure that the LHS is a RADIUS attribute 2146/head
authorAlan T. DeKok <aland@freeradius.org>
Tue, 19 Dec 2017 18:48:42 +0000 (13:48 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Tue, 19 Dec 2017 18:48:42 +0000 (13:48 -0500)
src/modules/rlm_couchbase/mod.c

index c5b721df647b0c5d4a4223b39b040736c0039ab8..f8b37dfc2c027581f1095c1d294e818066c4c6e0 100644 (file)
@@ -158,6 +158,11 @@ int mod_build_attribute_element_map(CONF_SECTION *conf, void *instance)
                /* get pair name (attribute name) */
                attribute = cf_pair_attr(cp);
 
+               if (!dict_attrbyname(attribute)) {
+                       ERROR("Unknown RADIUS attribute '%s'", attribute);
+                       return -1;
+               }
+
                /* get pair value (element name) */
                element = cf_pair_value(cp);