From: Eric Seppanen Date: Wed, 20 Nov 2013 22:19:52 +0000 (-0800) Subject: iscsi-target: chap auth shouldn't match username with trailing garbage X-Git-Tag: v3.13-rc1~5^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=86784c6bdeeef78eed94d298be7a8879f6a97ee2;p=pandora-kernel.git 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 Cc: #3.1+ Signed-off-by: Nicholas Bellinger --- Reading git-diff-tree failed