iscsi-target: fix chap identifier simple_strtoul usage
authorNicholas Bellinger <nab@linux-iscsi.org>
Mon, 28 Nov 2011 09:02:07 +0000 (01:02 -0800)
committerNicholas Bellinger <nab@linux-iscsi.org>
Wed, 14 Dec 2011 11:28:09 +0000 (11:28 +0000)
commitbc704fb58f507deea84a4c047a3a71351f0c55aa
tree64372a6e7fbf1a54214fda904a81637d8bba1402
parent8359cf43b9dccddeebb0d247146719a14ce6371a
iscsi-target: fix chap identifier simple_strtoul usage

This patch makes chap_server_compute_md5() use proper unsigned long
usage for the CHAP_I (identifier) and check for values beyond 255 as
per RFC-1994.

Reported-by: Joern Engel <joern@logfs.org>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/target/iscsi/iscsi_target_auth.c