Fix double quoted VALUE_PAIR definitions
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Wed, 10 Jul 2013 10:12:30 +0000 (11:12 +0100)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Wed, 10 Jul 2013 10:14:25 +0000 (11:14 +0100)
src/main/radclient.c

index 9a4c0ab..2e9732b 100644 (file)
@@ -296,6 +296,16 @@ static int radclient_init(char const *filename)
                for (vp = paircursor(&cursor, &radclient->request->vps);
                     vp;
                     vp = pairnext(&cursor)) {
+                       /*
+                        *      Double quoted strings get marked up as xlat expansions,
+                        *      but we don't support that in radclient.
+                        */
+                       if (vp->type == VT_XLAT) {
+                               vp->vp_strvalue = vp->value.xlat;
+                               vp->value.xlat = NULL;
+                               vp->type = VT_DATA;
+                       }
+                       
                        if (!vp->da->vendor) switch (vp->da->attr) {
                        default:
                                break;