switch to krb5_clear_error_message
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23912 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -53,7 +53,7 @@ kadm5_c_chpass_principal(void *server_handle,
|
||||
|
||||
sp = krb5_storage_from_mem(buf, sizeof(buf));
|
||||
if (sp == NULL) {
|
||||
krb5_clear_error_string(context->context);
|
||||
krb5_clear_error_message(context->context);
|
||||
return ENOMEM;
|
||||
}
|
||||
krb5_store_int32(sp, kadm_chpass);
|
||||
@@ -66,12 +66,12 @@ kadm5_c_chpass_principal(void *server_handle,
|
||||
return ret;
|
||||
sp = krb5_storage_from_data (&reply);
|
||||
if (sp == NULL) {
|
||||
krb5_clear_error_string(context->context);
|
||||
krb5_clear_error_message(context->context);
|
||||
krb5_data_free (&reply);
|
||||
return ENOMEM;
|
||||
}
|
||||
krb5_ret_int32(sp, &tmp);
|
||||
krb5_clear_error_string(context->context);
|
||||
krb5_clear_error_message(context->context);
|
||||
krb5_storage_free(sp);
|
||||
krb5_data_free (&reply);
|
||||
return tmp;
|
||||
@@ -97,7 +97,7 @@ kadm5_c_chpass_principal_with_key(void *server_handle,
|
||||
|
||||
sp = krb5_storage_from_mem(buf, sizeof(buf));
|
||||
if (sp == NULL) {
|
||||
krb5_clear_error_string(context->context);
|
||||
krb5_clear_error_message(context->context);
|
||||
return ENOMEM;
|
||||
}
|
||||
krb5_store_int32(sp, kadm_chpass_with_key);
|
||||
@@ -112,12 +112,12 @@ kadm5_c_chpass_principal_with_key(void *server_handle,
|
||||
return ret;
|
||||
sp = krb5_storage_from_data (&reply);
|
||||
if (sp == NULL) {
|
||||
krb5_clear_error_string(context->context);
|
||||
krb5_clear_error_message(context->context);
|
||||
krb5_data_free (&reply);
|
||||
return ENOMEM;
|
||||
}
|
||||
krb5_ret_int32(sp, &tmp);
|
||||
krb5_clear_error_string(context->context);
|
||||
krb5_clear_error_message(context->context);
|
||||
krb5_storage_free(sp);
|
||||
krb5_data_free (&reply);
|
||||
return tmp;
|
||||
|
Reference in New Issue
Block a user