libcli/smb: let tstream_smbXcli_np report connection errors as EPIPE instead of EIO
authorStefan Metzmacher <metze@samba.org>
Sat, 27 Jun 2015 20:55:22 +0000 (22:55 +0200)
committerGünther Deschner <gd@samba.org>
Fri, 3 Jul 2015 00:00:28 +0000 (02:00 +0200)
commit7e095eb334068a9c25064a52fd3e9c995ddf220e
tree8b340e05bcea96c0286afbf0033d4356b48d294a
parent793af3f2aeb036727981e00b709b88b9996fc25d
libcli/smb: let tstream_smbXcli_np report connection errors as EPIPE instead of EIO

This maps to NT_STATUS_CONNECTION_DISCONNECTED instead of
NT_STATUS_IO_DEVICE_ERROR.

EPIPE, NT_STATUS_CONNECTION_DISCONNECTED matches what other tstream backends
e.g. tcp and unix report.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Guenther Deschner <gd@samba.org>
libcli/smb/tstream_smbXcli_np.c