Attributes for "cisco vsa hack" don't need to be string
authorAlan T. DeKok <aland@freeradius.org>
Wed, 21 Apr 2010 06:57:29 +0000 (08:57 +0200)
committerAlan T. DeKok <aland@freeradius.org>
Mon, 26 Apr 2010 14:02:56 +0000 (16:02 +0200)
src/modules/rlm_preprocess/rlm_preprocess.c

index 5c25569..34acc56 100644 (file)
@@ -151,8 +151,7 @@ static void cisco_vsa_hack(VALUE_PAIR *vp)
                        p = vp->vp_strvalue;
                        gettoken(&p, newattr, sizeof(newattr));
 
-                       if (((dattr = dict_attrbyname(newattr)) != NULL) &&
-                           (dattr->type == PW_TYPE_STRING)) {
+                       if ((dattr = dict_attrbyname(newattr)) != NULL) {
                                VALUE_PAIR *newvp;
 
                                /*