iscsiuio: fixup type-punning issues in dhcpv6

Instead of cheekily treating an char array as an integer we
should be doing a proper conversion here.

Signed-off-by: Hannes Reinecke <hare@suse.de>
ISCSIUIO: Fixed a pthread resc leak from excessive session recovery

A pthread resource leak was discovered in the ongoing pthread
creation code during the session recovery process.  These pthreads
were erroneously created as joinable instead of having the intended
detached attribute.

Signed-off-by: Eddie Wai <eddie.wai@broadcom.com>
iscsiuio: Do not memcpy identical locations

It's pretty much pointless do a memcpy with src and dst
identical.
Found by valgrind.

Signed-off-by: Hannes Reinecke <hare@suse.de>
iscsiuio: Clear memory after allocation

Found by valgrind.

Signed-off-by: Hannes Reinecke <hare@suse.de>
iscsiuio: fixup race condition

valgrind detected a race condition in the nic receive loop.

Signed-off-by: Hannes Reinecke <hare@suse.de>