summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2005-01-17 04:08:24 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:08:56 -0500
commit6e135908736431b3c9f90dabf5193aa47c2d0714 (patch)
treeefdd0cf8dc54345c9b7770a77d0d6f7cc91c26cb /source4
parent4d7e4c80580f9902339680cecee457460fe85218 (diff)
downloadsamba-6e135908736431b3c9f90dabf5193aa47c2d0714.tar.gz
samba-6e135908736431b3c9f90dabf5193aa47c2d0714.tar.bz2
samba-6e135908736431b3c9f90dabf5193aa47c2d0714.zip
r4795: stronget type checking in composite connect function
(This used to be commit e16f67c931ba93011d52fdf14312d12a9b09c49a)
Diffstat (limited to 'source4')
-rw-r--r--source4/libcli/composite/connect.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/source4/libcli/composite/connect.c b/source4/libcli/composite/connect.c
index bdb1b4d263..891d16b4e6 100644
--- a/source4/libcli/composite/connect.c
+++ b/source4/libcli/composite/connect.c
@@ -279,7 +279,8 @@ static void state_handler(struct smbcli_composite *c)
*/
static void request_handler(struct smbcli_request *req)
{
- struct smbcli_composite *c = req->async.private;
+ struct smbcli_composite *c = talloc_get_type(req->async.private,
+ struct smbcli_composite);
return state_handler(c);
}
@@ -288,7 +289,8 @@ static void request_handler(struct smbcli_request *req)
*/
static void composite_handler(struct smbcli_composite *req)
{
- struct smbcli_composite *c = req->async.private;
+ struct smbcli_composite *c = talloc_get_type(req->async.private,
+ struct smbcli_composite);
return state_handler(c);
}