In krb5_copy_error_message, pass correct pointer to
authorGreg Hudson <ghudson@mit.edu>
Sat, 27 Jun 2009 01:00:05 +0000 (01:00 +0000)
committerGreg Hudson <ghudson@mit.edu>
Sat, 27 Jun 2009 01:00:05 +0000 (01:00 +0000)
krb5int_clear_error.

ticket: 6519
tags: pullup
target_version: 1.7

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

src/lib/krb5/krb/kerrs.c

index b7e4fc1c72e32cbf42d77e6fb3d628b1d7df2c65..51f1eca97eb5ab58e94929bf149b5bb6e62239e5 100644 (file)
@@ -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);
     }
 }