vp->da, not da
authorAlan T. DeKok <aland@freeradius.org>
Mon, 17 Nov 2014 20:22:20 +0000 (15:22 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Mon, 17 Nov 2014 20:32:13 +0000 (15:32 -0500)
src/lib/pair.c

index 9fd5f1e..998dc22 100644 (file)
@@ -1124,7 +1124,7 @@ int pairparsevalue(VALUE_PAIR *vp, char const *value, size_t inlen)
                da = dict_attrbytype(vp->da->attr, vp->da->vendor, type);
                if (!da) {
                        fr_strerror_printf("Cannot find %s variant of attribute \"%s\"",
-                                          fr_int2str(dict_attr_types, type, "<INVALID>"), da->name);
+                                          fr_int2str(dict_attr_types, type, "<INVALID>"), vp->da->name);
                        return -1;
                }
                vp->da = da;