r10545: map ECONNRESET to NT_STATUS_CONNECTION_RESET
authorStefan Metzmacher <metze@samba.org>
Tue, 27 Sep 2005 16:20:17 +0000 (16:20 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:39:04 +0000 (13:39 -0500)
metze
(This used to be commit e753114e863ff0ea32b35ef30a6f0056cfa7c902)

source4/libcli/util/errormap.c

index 95fac97428f283adb5cf58bd97e2da2a2364e4f3..99154d2cb0cd00aca6e0fdec7e11c0c5491eddb8 100644 (file)
@@ -1277,6 +1277,9 @@ const struct unix_error_map unix_nt_errmap[] = {
        { ENOMEM,       NT_STATUS_NO_MEMORY },
        { EPIPE,        NT_STATUS_CONNECTION_DISCONNECTED },
        { ECONNREFUSED, NT_STATUS_CONNECTION_REFUSED },
+#ifdef ECONNRESET
+       { ECONNRESET,   NT_STATUS_CONNECTION_RESET },
+#endif
        { EBUSY,        NT_STATUS_SHARING_VIOLATION },
 #ifdef ENOTSUP
        { ENOTSUP,      NT_STATUS_NOT_SUPPORTED},