summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source4/libcli/util/errormap.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source4/libcli/util/errormap.c b/source4/libcli/util/errormap.c
index 95fac97428..99154d2cb0 100644
--- a/source4/libcli/util/errormap.c
+++ b/source4/libcli/util/errormap.c
@@ -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},