In kadm5_rename_principal, fix an oversight which would cause errors
authorGreg Hudson <ghudson@mit.edu>
Sun, 13 Feb 2011 22:36:13 +0000 (22:36 +0000)
committerGreg Hudson <ghudson@mit.edu>
Sun, 13 Feb 2011 22:36:13 +0000 (22:36 +0000)
from krb5_principal2salt_norealm to be ignored.

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

src/lib/kadm5/srv/svr_principal.c

index 9abb4e6d6e2ae69845f5d22ebf041d849bdfe2c1..3dcac0d43b977f02717ff498b681c70d6e4f2d39 100644 (file)
@@ -762,7 +762,8 @@ kadm5_rename_principal(void *server_handle,
                 goto done;
             break;
         case KRB5_KDB_SALTTYPE_NOREALM:
-            krb5_principal2salt_norealm(handle->context, kdb->princ, &sdata);
+            ret = krb5_principal2salt_norealm(handle->context, kdb->princ,
+                                              &sdata);
             if (ret)
                 goto done;
             break;