Date: Mon, 16 Jun 2025 23:45:49 GMT From: Cy Schubert <cy@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Subject: git: 29b02abb906b - main - pam_ksu: Move temp_realm into the correct context Message-ID: <202506162345.55GNjnOd016951@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by cy: URL: https://cgit.FreeBSD.org/src/commit/?id=29b02abb906bfdc8523ce3989493a2c87e89c4ad commit 29b02abb906bfdc8523ce3989493a2c87e89c4ad Author: Cy Schubert <cy@FreeBSD.org> AuthorDate: 2025-06-16 23:44:10 +0000 Commit: Cy Schubert <cy@FreeBSD.org> CommitDate: 2025-06-16 23:45:28 +0000 pam_ksu: Move temp_realm into the correct context Fixes: 98f18cd98824 --- lib/libpam/modules/pam_ksu/pam_ksu.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/libpam/modules/pam_ksu/pam_ksu.c b/lib/libpam/modules/pam_ksu/pam_ksu.c index e50c3e387311..002613188d8c 100644 --- a/lib/libpam/modules/pam_ksu/pam_ksu.c +++ b/lib/libpam/modules/pam_ksu/pam_ksu.c @@ -78,10 +78,11 @@ static krb5_error_code krb5_make_principal(krb5_context context, krb5_principal principal, krb5_const_realm realm, ...) { + krb5_realm temp_realm = NULL; krb5_error_code rc; va_list ap; + if (realm == NULL) { - krb5_realm temp_realm = NULL; if ((rc = krb5_get_default_realm(context, &temp_realm))) return (rc); realm=temp_realm;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202506162345.55GNjnOd016951>