summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);
}