xconn->smb2.request_read_state->xconn = xconn
authorStefan Metzmacher <metze@samba.org>
Tue, 27 Sep 2022 13:23:55 +0000 (15:23 +0200)
committerStefan Metzmacher <metze@samba.org>
Mon, 16 Oct 2023 11:03:46 +0000 (13:03 +0200)
source3/smbd/globals.h
source3/smbd/smb2_server.c

index a4a42227e78f5297e3700bdb3291c7d68971dab0..59a593bd4538c58a182f6e3b17f4bd53476981eb 100644 (file)
@@ -457,6 +457,7 @@ struct smbXsrv_connection {
 #endif
        struct {
                struct smbd_smb2_request_read_state {
+                       struct smbXsrv_connection *xconn;
                        struct smbd_smb2_request *req;
                        struct {
                                uint8_t nbt[NBT_HDR_SIZE];
index 32f3f487f61ae030d6d5078b1a7d02a14c11a666..005ad6e406a7f96bf8d3b4be4973dc5d8d0c10fc 100644 (file)
@@ -309,6 +309,7 @@ static NTSTATUS smbd_initialize_smb2(struct smbXsrv_connection *xconn,
        }
        talloc_set_destructor(xconn->smb2.request_read_state,
                              smbd_smb2_request_read_state_destructor);
+       xconn->smb2.request_read_state->xconn = xconn;
 
        xconn->smb2.credits.seq_low = expected_seq_low;
        xconn->smb2.credits.seq_range = 1;