smbd: fix a long line in smb2_query_directory_next_entry()
authorRalph Boehme <slow@samba.org>
Thu, 21 Jun 2018 10:44:42 +0000 (12:44 +0200)
committerRalph Boehme <slow@samba.org>
Fri, 27 Jul 2018 11:07:15 +0000 (13:07 +0200)
Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
source3/smbd/smb2_query_directory.c

index 6577ab81eaaf14d67b075402c70a8236f8da6645..1a7137ce8793247c74176409d360a5962f6787d8 100644 (file)
@@ -576,13 +576,14 @@ static bool smb2_query_directory_next_entry(struct tevent_req *req)
 
        if (state->async_ask_sharemode) {
                struct tevent_req *subreq = NULL;
+               char *buf = state->base_data + state->last_entry_off;
 
                subreq = fetch_write_time_send(state,
                                               state->ev,
                                               state->fsp->conn,
                                               file_id,
                                               state->info_level,
-                                              state->base_data + state->last_entry_off,
+                                              buf,
                                               &stop);
                if (tevent_req_nomem(subreq, req)) {
                        return true;