From: Alan T. DeKok Date: Tue, 8 Mar 2016 14:09:42 +0000 (-0500) Subject: Pass talloc context to function. X-Git-Tag: release_3_0_12~194 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6b8457f0cfaaf23ee3660d658a8bfa3d7c2b6a2b;p=thirdparty%2Ffreeradius-server.git Pass talloc context to function. And rename it. --- diff --git a/src/lib/pair.c b/src/lib/pair.c index aa4a6fac247..102f96d5552 100644 --- a/src/lib/pair.c +++ b/src/lib/pair.c @@ -1259,12 +1259,12 @@ finish: } -static VALUE_PAIR *fr_pair_from_unkown(VALUE_PAIR *vp, DICT_ATTR const *da) +static VALUE_PAIR *fr_pair_from_unknown(TALLOC_CTX *ctx, VALUE_PAIR *vp, DICT_ATTR const *da) { ssize_t len; VALUE_PAIR *vp2; - len = data2vp(NULL, NULL, NULL, NULL, da, + len = data2vp(ctx, NULL, NULL, NULL, da, vp->vp_octets, vp->vp_length, vp->vp_length, &vp2); if (len <= 0) return vp; /* it's really unknown */ @@ -1362,7 +1362,7 @@ static VALUE_PAIR *fr_pair_make_unknown(TALLOC_CTX *ctx, */ da = dict_attrbyvalue(vp->da->attr, vp->da->vendor); if (da) { - return fr_pair_from_unkown(vp, da); + return fr_pair_from_unknown(ctx, vp, da); } return vp;