]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
minor cleanup
authorAlan T. DeKok <aland@freeradius.org>
Mon, 18 Apr 2016 19:24:58 +0000 (15:24 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Mon, 18 Apr 2016 19:24:58 +0000 (15:24 -0400)
src/lib/pair.c

index 7deccdbb80468fdfcbc3a5b701d2dbebf764a4c9..c7701e27aaf3df757c5835a40875a30c5b3cbb36 100644 (file)
@@ -1316,8 +1316,8 @@ static VALUE_PAIR *fr_pair_make_unknown(TALLOC_CTX *ctx,
        vp = fr_pair_alloc(ctx);
        if (!vp) return NULL;
 
-       da = dict_unknown_afrom_str(vp, attribute);
-       if (!da) {
+       vp->da = dict_unknown_afrom_str(vp, attribute);
+       if (!vp->da) {
                talloc_free(vp);
                return NULL;
        }
@@ -1346,7 +1346,6 @@ static VALUE_PAIR *fr_pair_make_unknown(TALLOC_CTX *ctx,
        vp->vp_octets = data = talloc_array(vp, uint8_t, vp->vp_length);
        vp->type = VT_DATA;
        vp->op = (op == 0) ? T_OP_EQ : op;
-       vp->da = da;
 
        if (fr_hex2bin(data, vp->vp_length, value + 2, size) != vp->vp_length) {
                fr_strerror_printf("Invalid hex string");