diff options
author | Andrew Tridgell <tridge@samba.org> | 2005-01-16 23:23:45 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:08:55 -0500 |
commit | 4a03172e66694b51a24f7b5566f361c1f1767e29 (patch) | |
tree | c29ddb9ce94d84c8c6bcba7e0ea86a2fb4524c89 /source4/libcli/composite/sesssetup.c | |
parent | 7b79694eadc288592729567c3caa7c70f6662760 (diff) | |
download | samba-4a03172e66694b51a24f7b5566f361c1f1767e29.tar.gz samba-4a03172e66694b51a24f7b5566f361c1f1767e29.tar.bz2 samba-4a03172e66694b51a24f7b5566f361c1f1767e29.zip |
r4791: used the new talloc type safety macros to make the "void *private"
pointers in the composite code type safe.
This is a bit of an experiement, I'd be interested in comments on
whether we should use this more widely.
(This used to be commit 0e1da827b380998355f75f4ef4f424802059c278)
Diffstat (limited to 'source4/libcli/composite/sesssetup.c')
-rw-r--r-- | source4/libcli/composite/sesssetup.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source4/libcli/composite/sesssetup.c b/source4/libcli/composite/sesssetup.c index fdc638837c..771f85e541 100644 --- a/source4/libcli/composite/sesssetup.c +++ b/source4/libcli/composite/sesssetup.c @@ -94,7 +94,7 @@ static void use_nt1_session_keys(struct smbcli_session *session, static void request_handler(struct smbcli_request *req) { struct smbcli_composite *c = req->async.private; - struct sesssetup_state *state = c->private; + struct sesssetup_state *state = talloc_get_type(c->private, struct sesssetup_state); struct smbcli_session *session = req->session; DATA_BLOB session_key = data_blob(NULL, 0); DATA_BLOB null_data_blob = data_blob(NULL, 0); @@ -168,7 +168,7 @@ static struct smbcli_request *session_setup_nt1(struct smbcli_composite *c, struct smbcli_session *session, struct smb_composite_sesssetup *io) { - struct sesssetup_state *state = c->private; + struct sesssetup_state *state = talloc_get_type(c->private, struct sesssetup_state); state->setup.nt1.level = RAW_SESSSETUP_NT1; state->setup.nt1.in.bufsize = session->transport->options.max_xmit; @@ -207,7 +207,7 @@ static struct smbcli_request *session_setup_old(struct smbcli_composite *c, struct smbcli_session *session, struct smb_composite_sesssetup *io) { - struct sesssetup_state *state = c->private; + struct sesssetup_state *state = talloc_get_type(c->private, struct sesssetup_state); state->setup.old.level = RAW_SESSSETUP_OLD; state->setup.old.in.bufsize = session->transport->options.max_xmit; @@ -241,7 +241,7 @@ static struct smbcli_request *session_setup_spnego(struct smbcli_composite *c, struct smbcli_session *session, struct smb_composite_sesssetup *io) { - struct sesssetup_state *state = c->private; + struct sesssetup_state *state = talloc_get_type(c->private, struct sesssetup_state); NTSTATUS status; DATA_BLOB session_key = data_blob(NULL, 0); DATA_BLOB null_data_blob = data_blob(NULL, 0); |