pull up r22424 from trunk
authorTom Yu <tlyu@mit.edu>
Mon, 28 Sep 2009 21:27:39 +0000 (21:27 +0000)
committerTom Yu <tlyu@mit.edu>
Mon, 28 Sep 2009 21:27:39 +0000 (21:27 +0000)
 ------------------------------------------------------------------------
 r22424 | ghudson | 2009-06-26 21:00:05 -0400 (Fri, 26 Jun 2009) | 7 lines

 ticket: 6519
 tags: pullup
 target_version: 1.7

 In krb5_copy_error_message, pass correct pointer to
 krb5int_clear_error.

ticket: 6519
version_fixed: 1.7.1
status: resolved

git-svn-id: svn://anonsvn.mit.edu/krb5/branches/krb5-1-7@22804 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);
     }
 }