summaryrefslogtreecommitdiff
path: root/source3/lib
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2009-08-11 13:52:07 +0200
committerStefan Metzmacher <metze@samba.org>2009-08-12 13:27:58 +0200
commit14888c21acaf34da047937b29833d7788bafe11d (patch)
treefdbb17b0d37cc7d0904b677f12e817409823317c /source3/lib
parent91d13b68be55728a85b3832e2da9267dbf4f2464 (diff)
downloadsamba-14888c21acaf34da047937b29833d7788bafe11d.tar.gz
samba-14888c21acaf34da047937b29833d7788bafe11d.tar.bz2
samba-14888c21acaf34da047937b29833d7788bafe11d.zip
s3:lib: map ECONNRESET to NT_STATUS_CONNECTION_RESET
metze
Diffstat (limited to 'source3/lib')
-rw-r--r--source3/lib/errmap_unix.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source3/lib/errmap_unix.c b/source3/lib/errmap_unix.c
index 00c5475394..d43598bc53 100644
--- a/source3/lib/errmap_unix.c
+++ b/source3/lib/errmap_unix.c
@@ -87,6 +87,9 @@ const struct unix_error_map unix_dos_nt_errmap[] = {
#ifdef ECONNABORTED
{ ECONNABORTED, ERRHRD, ERRgeneral, NT_STATUS_CONNECTION_ABORTED},
#endif
+#ifdef ECONNRESET
+ { ECONNRESET, ERRHRD, ERRgeneral, NT_STATUS_CONNECTION_RESET},
+#endif
#ifdef ENODEV
{ ENODEV, ERRDOS, 55, NT_STATUS_DEVICE_DOES_NOT_EXIST},
#endif