smbXsrv_open.c: fix a return code (by copy from smbXsrv_session.c)
authorMichael Adam <obnox@samba.org>
Fri, 10 Feb 2012 23:49:45 +0000 (00:49 +0100)
committerStefan Metzmacher <metze@samba.org>
Thu, 10 May 2012 16:41:27 +0000 (18:41 +0200)
source3/smbd/smbXsrv_open.c

index d51226edf2fdeaa7311aec774ebf77cf55a6d20e..901046479dff6be3ca0aa376f14b9088e840e496 100644 (file)
@@ -455,7 +455,7 @@ static NTSTATUS smbXsrv_open_global_lookup(struct smbXsrv_open_table *table,
        status = dbwrap_parse_record(table->global.db_ctx, key,
                                     smbXsrv_open_global_fetch_parser, &state);
        if (NT_STATUS_EQUAL(status, NT_STATUS_NOT_FOUND)) {
-               return NT_STATUS_USER_SESSION_DELETED;
+               return NT_STATUS_OBJECT_NAME_NOT_FOUND;
        } else if (!NT_STATUS_IS_OK(status)) {
                return status;
        }