]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitff7af8c9b1510a4b021f646fa360861cda187c3c
treeb1f3ac91024dba8446faf19cd3ca66238fd82155
parentdad65f214dcb12470d80fac0c10a00cc171b7834
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