john/s390x-upstream.patch

26 lines
882 B
Diff
Raw Normal View History

From e90800f8000b502fa8d2d687df8a405749351523 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Claudio=20Andr=C3=A9?= <claudioandre.br@gmail.com>
Date: Tue, 12 Oct 2021 11:41:12 -0300
Subject: [PATCH] S390
---
src/opencl_pbkdf2_hmac_sha1_fmt_plug.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/opencl_pbkdf2_hmac_sha1_fmt_plug.c b/src/opencl_pbkdf2_hmac_sha1_fmt_plug.c
index 23987a934..7eb3de333 100644
--- a/src/opencl_pbkdf2_hmac_sha1_fmt_plug.c
+++ b/src/opencl_pbkdf2_hmac_sha1_fmt_plug.c
@@ -226,7 +226,7 @@ static void *get_binary(char *ciphertext)
unsigned char *out = pbkdf2_hmac_sha1_binary(ciphertext);
#if !ARCH_LITTLE_ENDIAN
char *p = strrchr(ciphertext, '$') + 1;
- int len = strlen(p) / 2;
+ int i, len = strlen(p) / 2;
for (i = 0; i < len / sizeof(uint32_t); ++i) {
((uint32_t*)out)[i] = JOHNSWAP(((uint32_t*)out)[i]);
}
--
2.25.1