summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/smbd/error.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/smbd/error.c b/source3/smbd/error.c
index d879f9a93c..472a8d8fd1 100644
--- a/source3/smbd/error.c
+++ b/source3/smbd/error.c
@@ -119,6 +119,9 @@ int error_packet(char *inbuf,char *outbuf,int error_class,uint32 error_code,int
int cmd = CVAL(inbuf,smb_com);
int flgs2 = SVAL(outbuf,smb_flg2);
+ if (errno != 0)
+ DEBUG(3,("error string = %s\n",strerror(errno)));
+
if ((flgs2 & FLAGS2_32_BIT_ERROR_CODES) == FLAGS2_32_BIT_ERROR_CODES)
{
SIVAL(outbuf,smb_rcls,error_code);
@@ -139,8 +142,5 @@ int error_packet(char *inbuf,char *outbuf,int error_class,uint32 error_code,int
}
- if (errno != 0)
- DEBUG(3,("error string = %s\n",strerror(errno)));
-
return(outsize);
}