Skip to content
Commit b06eef6e authored by Nicholas Bellinger's avatar Nicholas Bellinger
Browse files

iscsi-target: Convert chap_server_compute_md5 to use kstrtoul



This patch converts chap_server_compute_md5() from simple_strtoul() to
kstrtoul usage().

This addresses the case where a empty 'CHAP_I=' key value received during
mutual authentication would be converted to a '0' by simple_strtoul(),
instead of failing the login attempt.

Reported-by: default avatarTejas Vaykole <tejas.vaykole@calsoftinc.com>
Tested-by: default avatarTejas Vaykole <tejas.vaykole@calsoftinc.com>
Signed-off-by: default avatarNicholas Bellinger <nab@linux-iscsi.org>
parent a497c3ba
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment