* kpropd.c (PRS): munge realm of sname_to_princ when -r is
authorBarry Jaspan <bjaspan@mit.edu>
Tue, 22 Oct 1996 20:52:48 +0000 (20:52 +0000)
committerBarry Jaspan <bjaspan@mit.edu>
Tue, 22 Oct 1996 20:52:48 +0000 (20:52 +0000)
  specified [krb5-admin/39]

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9237 dc483132-0cff-0310-8789-dd5450dbe970

src/slave/ChangeLog
src/slave/kpropd.c

index aa2906c5b75a508157e41f302da965a02a4ff434..03380e69279be8c3cc90b5756b6b5585314f61c0 100644 (file)
@@ -1,3 +1,8 @@
+Tue Oct 22 16:42:37 1996  Barry Jaspan  <bjaspan@mit.edu>
+
+       * 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  <tlyu@mit.edu>
 
        * kprop.M, kpropd.M: remove ".so man1/header.doc"
index f4aad57664279c9ac57a5098c77ad8b5b2c4fd72..ab214db114adc92bdb0a4e3db14e573a81abb8c6 100644 (file)
@@ -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.
         */