diff options
author | Stefan Metzmacher <metze@samba.org> | 2020-06-25 22:45:07 +0200 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2020-07-08 15:54:41 +0000 |
commit | 876a84493bb4c90edc01f49cdd332275383a8eb0 (patch) | |
tree | d4e70c423bef7b1b8a24f05828efacc4f0fb3f5b | |
parent | dbe27672131593390218423acbf20d6a2ea45410 (diff) | |
download | samba-876a84493bb4c90edc01f49cdd332275383a8eb0.tar.gz |
s3:smbd: fill in xconn->client early in smbd_add_connection()
BUG: https://bugzilla.samba.org/show_bug.cgi?id=11898
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Günther Deschner <gd@samba.org>
-rw-r--r-- | source3/smbd/process.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/source3/smbd/process.c b/source3/smbd/process.c index 008b1986150..651f72f33fc 100644 --- a/source3/smbd/process.c +++ b/source3/smbd/process.c @@ -3750,6 +3750,7 @@ NTSTATUS smbd_add_connection(struct smbXsrv_client *client, int sock_fd, return NT_STATUS_NO_MEMORY; } talloc_steal(frame, xconn); + xconn->client = client; xconn->connect_time = now; if (client->next_channel_id != 0) { xconn->channel_id = client->next_channel_id++; @@ -3867,7 +3868,6 @@ NTSTATUS smbd_add_connection(struct smbXsrv_client *client, int sock_fd, * to the client */ DLIST_ADD_END(client->connections, xconn); - xconn->client = client; talloc_steal(client, xconn); *_xconn = xconn; @@ -3917,7 +3917,6 @@ NTSTATUS smbd_add_connection(struct smbXsrv_client *client, int sock_fd, /* for now we only have one connection */ DLIST_ADD_END(client->connections, xconn); - xconn->client = client; talloc_steal(client, xconn); *_xconn = xconn; |