]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
we need a tmp_ctx
authorAlan T. DeKok <aland@freeradius.org>
Sat, 9 Nov 2019 17:40:10 +0000 (12:40 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Sat, 9 Nov 2019 17:40:10 +0000 (12:40 -0500)
accidentally deleted in earlier commits

src/protocols/radius/decode.c

index e19cdd70fc6d6a86e4494fa3efeb74d08f84acd4..eb9aeffc2e4bb9665281c454b310d3b178ded1b1 100644 (file)
@@ -1630,6 +1630,7 @@ static int decode_test_ctx(void **out, TALLOC_CTX *ctx)
        test_ctx = talloc_zero(ctx, fr_radius_ctx_t);
        test_ctx->secret = talloc_strdup(test_ctx, "testing123");
        test_ctx->vector = vector;
+       test_ctx->tmp_ctx = talloc_zero(ctx, uint8_t);
        talloc_set_destructor(test_ctx, _test_ctx_free);
 
        *out = test_ctx;