client_init.c (_kadm5_init_any): Use a more fined grained error code,
authorTheodore Tso <tytso@mit.edu>
Thu, 7 Nov 1996 17:13:44 +0000 (17:13 +0000)
committerTheodore Tso <tytso@mit.edu>
Thu, 7 Nov 1996 17:13:44 +0000 (17:13 +0000)
KADM5_MISSING_CONF_PARAMS, instead of KRB5_CONFIG_BADFORMAT

(_kadm5_init_any): Use a more fined grained error code,
KADM5_BAD_SERVER_NAME, instead of KRB5_CONFIG_BADFORMAT.

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

src/lib/kadm5/clnt/ChangeLog
src/lib/kadm5/clnt/client_init.c

index 1d170496884f385478df531985c252d1084ed3a6..e7f879869a7e9b90fb82bf300489388433e4e370 100644 (file)
@@ -1,3 +1,11 @@
+Wed Nov  6 10:35:01 1996  Theodore Ts'o  <tytso@rsts-11.mit.edu>
+
+       * client_init.c (_kadm5_init_any): Use a more fined grained error
+               code, KADM5_MISSING_CONF_PARAMS instead of
+               KRB5_CONFIG_BADFORMAT
+       (_kadm5_init_any): Use a more fined grained error code,
+               KADM5_BAD_SERVER_NAME, instead of KRB5_CONFIG_BADFORMAT.
+
 Thu Nov  7 11:41:08 1996  Ezra Peisach  <epeisach@mit.edu>
 
        * client_principal.c (kadm5_get_principal,
index 019c277fb3eab971380238876fd6cf3cc867ca0f..00951a3233927d4df52ace798fc46e80c367942b 100644 (file)
@@ -238,7 +238,7 @@ static kadm5_ret_t _kadm5_init_any(char *client_name,
      if ((handle->params.mask & REQUIRED_PARAMS) != REQUIRED_PARAMS) {
          krb5_free_context(handle->context);
          free(handle);
-         return KRB5_CONFIG_BADFORMAT;
+         return KADM5_MISSING_CONF_PARAMS;
      }
      
      /*
@@ -375,7 +375,7 @@ static kadm5_ret_t _kadm5_init_any(char *client_name,
 
      hp = gethostbyname(handle->params.admin_server);
      if (hp == (struct hostent *) NULL) {
-         code = KRB5_CONFIG_BADFORMAT;
+         code = KADM5_BAD_SERVER_NAME;
          goto cleanup;
      }