summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorEric Seppanen2013-11-20 23:19:52 +0100
committerNicholas Bellinger2013-11-21 07:03:57 +0100
commit86784c6bdeeef78eed94d298be7a8879f6a97ee2 (patch)
tree8a73f73d36e0051f0cf7a40ca85a3cae7375b0c6 /lib
parentiscsi-target: fix extract_param to handle buffer length corner case (diff)
downloadkernel-qcow2-linux-86784c6bdeeef78eed94d298be7a8879f6a97ee2.tar.gz
kernel-qcow2-linux-86784c6bdeeef78eed94d298be7a8879f6a97ee2.tar.xz
kernel-qcow2-linux-86784c6bdeeef78eed94d298be7a8879f6a97ee2.zip
iscsi-target: chap auth shouldn't match username with trailing garbage
In iSCSI negotiations with initiator CHAP enabled, usernames with trailing garbage are permitted, because the string comparison only checks the strlen of the configured username. e.g. "usernameXXXXX" will be permitted to match "username". Just check one more byte so the trailing null char is also matched. Signed-off-by: Eric Seppanen <eric@purestorage.com> Cc: <stable@vger.kernel.org> #3.1+ Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions