diff options
Diffstat (limited to 'source/smbd/files.c')
-rw-r--r-- | source/smbd/files.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/source/smbd/files.c b/source/smbd/files.c index 143c1196937..e893e9fefc1 100644 --- a/source/smbd/files.c +++ b/source/smbd/files.c @@ -95,15 +95,13 @@ files_struct *file_new(connection_struct *conn) } DEBUG(0,("ERROR! Out of file structures\n")); - unix_ERR_class = ERRSRV; - unix_ERR_code = ERRnofids; + set_saved_error_triple(ERRSRV, ERRnofids, NT_STATUS_TOO_MANY_OPENED_FILES); return NULL; } fsp = SMB_MALLOC_P(files_struct); if (!fsp) { - unix_ERR_class = ERRSRV; - unix_ERR_code = ERRnofids; + set_saved_error_triple(ERRDOS, ERRnomem, NT_STATUS_NO_MEMORY); return NULL; } |