r2503: the RAW-SEARCH test now mostly passes against the posix backend
[kai/samba-autobuild/.git] / source4 / smb_server / trans2.c
index 6e02ddc90d2bcdb36771dcc8bfc9388141ffbdbf..48c10b32302e97b2ba840918951b261df96b23ed 100644 (file)
@@ -1116,6 +1116,7 @@ static NTSTATUS trans2_findfirst(struct smbsrv_request *req, struct smb_trans2 *
        /* call the backend */
        status = req->tcon->ntvfs_ops->search_first(req, &search, &state, find_callback);
        if (!NT_STATUS_IS_OK(status)) {
+               trans2_setup_reply(req, trans, 0, 0, 0);
                return status;
        }
 
@@ -1126,7 +1127,7 @@ static NTSTATUS trans2_findfirst(struct smbsrv_request *req, struct smb_trans2 *
        SSVAL(param, VWV(2), search.t2ffirst.out.end_of_search);
        SSVAL(param, VWV(3), 0);
        SSVAL(param, VWV(4), state.last_entry_offset);
-       
+
        return NT_STATUS_OK;
 }