|
@@ -177,6 +177,7 @@ gss_get_mic_v2(struct krb5_ctx *ctx, struct xdr_buf *text,
|
|
|
u64 seq_send;
|
|
|
u8 *cksumkey;
|
|
|
unsigned int cksum_usage;
|
|
|
+ __be64 seq_send_be64;
|
|
|
|
|
|
dprintk("RPC: %s\n", __func__);
|
|
|
|
|
@@ -187,7 +188,9 @@ gss_get_mic_v2(struct krb5_ctx *ctx, struct xdr_buf *text,
|
|
|
spin_lock(&krb5_seq_lock);
|
|
|
seq_send = ctx->seq_send64++;
|
|
|
spin_unlock(&krb5_seq_lock);
|
|
|
- *((__be64 *)(krb5_hdr + 8)) = cpu_to_be64(seq_send);
|
|
|
+
|
|
|
+ seq_send_be64 = cpu_to_be64(seq_send);
|
|
|
+ memcpy(krb5_hdr + 8, (char *) &seq_send_be64, 8);
|
|
|
|
|
|
if (ctx->initiate) {
|
|
|
cksumkey = ctx->initiator_sign;
|