From 9d0149d2f251e4362701f164b57c0439ba0283cc Mon Sep 17 00:00:00 2001 From: Nicolas Williams Date: Wed, 19 Jan 2022 23:49:06 -0600 Subject: [PATCH] krb5: Context has to be opt. in for path tok. exp. --- lib/krb5/expand_path.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/krb5/expand_path.c b/lib/krb5/expand_path.c index a1f4dfcfc..a0402350d 100644 --- a/lib/krb5/expand_path.c +++ b/lib/krb5/expand_path.c @@ -55,8 +55,8 @@ _krb5_expand_path_tokens(krb5_context context, int filepath, char **ppath_out) { - return heim_expand_path_tokens(context->hcontext, path_in, filepath, - ppath_out, NULL); + return heim_expand_path_tokens(context ? context->hcontext : NULL, path_in, + filepath, ppath_out, NULL); } /**