From 68f56907307ccafebeafa0fbdd7bf7cafc13676b Mon Sep 17 00:00:00 2001 From: Theodore Tso Date: Thu, 7 Nov 1996 17:13:44 +0000 Subject: [PATCH] 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. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9321 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/kadm5/clnt/ChangeLog | 8 ++++++++ src/lib/kadm5/clnt/client_init.c | 4 ++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/src/lib/kadm5/clnt/ChangeLog b/src/lib/kadm5/clnt/ChangeLog index 1d1704968..e7f879869 100644 --- a/src/lib/kadm5/clnt/ChangeLog +++ b/src/lib/kadm5/clnt/ChangeLog @@ -1,3 +1,11 @@ +Wed Nov 6 10:35:01 1996 Theodore Ts'o + + * 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 * client_principal.c (kadm5_get_principal, diff --git a/src/lib/kadm5/clnt/client_init.c b/src/lib/kadm5/clnt/client_init.c index 019c277fb..00951a323 100644 --- a/src/lib/kadm5/clnt/client_init.c +++ b/src/lib/kadm5/clnt/client_init.c @@ -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; } -- 2.26.2