diff options
author | Stefan Metzmacher <metze@samba.org> | 2014-07-10 08:21:22 +0200 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2014-07-24 19:07:05 +0200 |
commit | 78e46d7349b5839993c001a5afc2060a48244d15 (patch) | |
tree | 1f62b0d5b53d228ea9f8853c8a553a9e63512a45 /source4/libcli/smb2/session.c | |
parent | cd95937369b1729e2417d78f3c903bce5d32da93 (diff) | |
download | samba-78e46d7349b5839993c001a5afc2060a48244d15.tar.gz samba-78e46d7349b5839993c001a5afc2060a48244d15.tar.xz samba-78e46d7349b5839993c001a5afc2060a48244d15.zip |
s4:libcli/smb2: remove unused 'primary' argument of smb2_session_init()
This also gets rid of a talloc_reference() usage.
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
Diffstat (limited to 'source4/libcli/smb2/session.c')
-rw-r--r-- | source4/libcli/smb2/session.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/source4/libcli/smb2/session.c b/source4/libcli/smb2/session.c index dfc607e0e8..4d1402a09b 100644 --- a/source4/libcli/smb2/session.c +++ b/source4/libcli/smb2/session.c @@ -36,7 +36,7 @@ */ struct smb2_session *smb2_session_init(struct smb2_transport *transport, struct gensec_settings *settings, - TALLOC_CTX *parent_ctx, bool primary) + TALLOC_CTX *parent_ctx) { struct smb2_session *session; NTSTATUS status; @@ -45,11 +45,7 @@ struct smb2_session *smb2_session_init(struct smb2_transport *transport, if (!session) { return NULL; } - if (primary) { - session->transport = talloc_steal(session, transport); - } else { - session->transport = talloc_reference(session, transport); - } + session->transport = talloc_steal(session, transport); session->smbXcli = smbXcli_session_create(session, transport->conn); if (session->smbXcli == NULL) { |