Whamcloud - gitweb
branch: b_new_cmd
authorericm <ericm>
Mon, 11 Dec 2006 20:36:22 +0000 (20:36 +0000)
committerericm <ericm>
Mon, 11 Dec 2006 20:36:22 +0000 (20:36 +0000)
fix return error value of checksum verification, the upper layer and
recovery depend on the exact error value to decide to reply error rpc.

lustre/ptlrpc/gss/gss_krb5_mech.c

index 29e15c3..00449a6 100644 (file)
@@ -777,6 +777,7 @@ __u32 gss_verify_mic_kerberos(struct gss_ctx *gctx,
         if (memcmp(khdr + 1, cksum.data + cksum.len - ke->ke_hash_size,
                    ke->ke_hash_size)) {
                 CERROR("checksum mismatch\n");
+                rc = GSS_S_BAD_SIG;
                 goto out;
         }