From 676afd07a0d523635f423af35dccfb6c6ab5c883 Mon Sep 17 00:00:00 2001 From: lishiao144 <1447175116@qq.com> Date: Thu, 29 May 2025 11:50:20 +0800 Subject: [PATCH] Signed vs. unsigned byte mismatch in CHAP_R comparison --- include/iscsi-private.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/iscsi-private.h b/include/iscsi-private.h index 69781ef..1fce36a 100644 --- a/include/iscsi-private.h +++ b/include/iscsi-private.h @@ -124,7 +124,7 @@ struct iscsi_context { char target_user[MAX_STRING_SIZE+1]; char target_passwd[MAX_STRING_SIZE+1]; int target_chap_i; - char target_chap_r[MAX_CHAP_R_SIZE]; + unsigned char target_chap_r[MAX_CHAP_R_SIZE]; char error_string[MAX_STRING_SIZE+1];