Added principal type of NT_SRV_HST
authorTheodore Tso <tytso@mit.edu>
Wed, 10 Jun 1992 22:36:52 +0000 (22:36 +0000)
committerTheodore Tso <tytso@mit.edu>
Wed, 10 Jun 1992 22:36:52 +0000 (22:36 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@2293 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/krb5/os/sn2princ.c

index fe4b243cad2f38a74da5f6e185ccfdd0bdec58a7..716b127ee8dac2b63aaa75473b25bdf4001e41e8 100644 (file)
@@ -81,6 +81,8 @@ OLDDECLARG(krb5_principal *,ret_princ)
     retval = krb5_build_principal(ret_princ, strlen(hrealms[0]), hrealms[0],
                                  sname, remote_host, (char *)0);
 
+    krb5_princ_type(principal) = KRB5_NT_SRV_HST;
+
     free(remote_host);
     krb5_free_host_realm(hrealms);
     return retval;