fix CHAP authentication

Empty discovery and login packets are legal, and have the same behavior
as packets with a single NUL in them.  Introduced by commit 94d73fc
(Merge pull request #83 from bonzini/coverity, 2013-11-05).

Reported-by: John Ferlan <jferlan@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Merge pull request #84 from bonzini/master

fix CHAP authentication
Spelling fixes: Dont => Don't

Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
Remove the generated manpages on make clean
Add some missing files to 'make dist'
Set SOCURRENT/REVISION/AGE manually from Makefile.am
Fix a segfault in the old T0184 WS10 test
Free the correct inq task to avoid leaking memory during startup.
Old TESTS: Abort 0180 thin provisioning test early if the LUN does not have LBPME enabled
Discovery: Create a list of portals for each discovered target.

Some targets return multiple TargetAddress for individual targets.
Create a linked list of addresses for each target instead of
failing the discovery process when this happens.
Corrected the log
Merge pull request #85 from vn516726/master

Corrected the log
Fix logging typo.
TESTS: Fix WRITESAME tests to handle targets that don't like datalen == 0

Recent SBC specs say (when the WSNZ bit is set to one and the NUMBER OF LOGICAL
BLOCKS field is set to zero) or (if MAXIMUM WRITE SAME LENGTH is greater than 0
and the number of logical blocks specified to be written exceeds the MAXIMUM
WRITE SAME LENGTH) the server should terminate with CHECK CONDITION, set the
sense key to ILLEGAL REQUEST and the additional sense code to INVALID FIELD IN
CDB.

Update the WRITESAME tests to cope with this.
OLD TESTS: Fix use after free in unsolicited_[non]immediate_data tests.

After destroying iscsi, nullify iscsi_url's reference to it to prevent a use
after free.

Detected by clang's AddressSanitizer.
Merge pull request #86 from sitsofe/writesame

Update WRITESAME tests and fix a logging typo
Merge pull request #87 from sitsofe/oldtests

OLD TESTS: Fix use after free in unsolicited_[non]immediate_data tests.
TESTS: Add tests for invalid iSCSI DATASN values.
Add iscsi-swp +manpage to the rpm build
Update README with more clear description of the libcunit dependency for iscsi-test-cu