summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/lib/krb5/krb/kerrs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/krb5/krb/kerrs.c b/src/lib/krb5/krb/kerrs.c
index b7e4fc1c7..51f1eca97 100644
--- a/src/lib/krb5/krb/kerrs.c
+++ b/src/lib/krb5/krb/kerrs.c
@@ -108,7 +108,7 @@ krb5_copy_error_message (krb5_context dest_ctx, krb5_context src_ctx)
krb5int_set_error(&dest_ctx->err, src_ctx->err.code, "%s",
src_ctx->err.msg);
} else {
- krb5int_clear_error(dest_ctx);
+ krb5int_clear_error(&dest_ctx->err);
}
}