From: Stefan Metzmacher Date: Tue, 11 Aug 2009 11:52:07 +0000 (+0200) Subject: s3:lib: map ECONNRESET to NT_STATUS_CONNECTION_RESET X-Git-Tag: talloc-2.0.0~408 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=14888c21acaf34da047937b29833d7788bafe11d;p=thirdparty%2Fsamba.git s3:lib: map ECONNRESET to NT_STATUS_CONNECTION_RESET metze --- diff --git a/source3/lib/errmap_unix.c b/source3/lib/errmap_unix.c index 00c54753940..d43598bc53f 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