iscsi-target: Convert chap_server_compute_md5 to use kstrtoul
authorNicholas Bellinger <nab@linux-iscsi.org>
Fri, 13 Jun 2014 04:05:16 +0000 (04:05 +0000)
committerNicholas Bellinger <nab@linux-iscsi.org>
Fri, 27 Jun 2014 03:56:42 +0000 (20:56 -0700)
commitb06eef6eab8e4a241f88385527ac4d1844abc18d
treeb1f3ac91024dba8446faf19cd3ca66238fd82155
parenta497c3ba1d97fc69c1e78e7b96435ba8c2cb42ee
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: Tejas Vaykole <tejas.vaykole@calsoftinc.com>
Tested-by: Tejas Vaykole <tejas.vaykole@calsoftinc.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/target/iscsi/iscsi_target_auth.c
This page took 0.025724 seconds and 5 git commands to generate.