From 3455a6d1ed5795603f1c11f9f811205f28eb99ee Mon Sep 17 00:00:00 2001 From: Barry Jaspan Date: Tue, 22 Oct 1996 20:52:48 +0000 Subject: [PATCH] * kpropd.c (PRS): munge realm of sname_to_princ when -r is specified [krb5-admin/39] git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9237 dc483132-0cff-0310-8789-dd5450dbe970 --- src/slave/ChangeLog | 5 +++++ src/slave/kpropd.c | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/src/slave/ChangeLog b/src/slave/ChangeLog index aa2906c5b..03380e692 100644 --- a/src/slave/ChangeLog +++ b/src/slave/ChangeLog @@ -1,3 +1,8 @@ +Tue Oct 22 16:42:37 1996 Barry Jaspan + + * kpropd.c (PRS): munge realm of sname_to_princ when -r is + specified [krb5-admin/39] + Tue Sep 10 14:19:08 1996 Tom Yu * kprop.M, kpropd.M: remove ".so man1/header.doc" diff --git a/src/slave/kpropd.c b/src/slave/kpropd.c index f4aad5766..ab214db11 100644 --- a/src/slave/kpropd.c +++ b/src/slave/kpropd.c @@ -470,6 +470,11 @@ void PRS(argv) "While trying to construct my service name"); exit(1); } + if (realm) { + (void) krb5_xfree(krb5_princ_realm(context, server)->data); + krb5_princ_set_realm_length(context, server, strlen(realm)); + krb5_princ_set_realm_data(context, server, strdup(realm)); + } /* * Construct the name of the temporary file. */ -- 2.26.2