From 6e135908736431b3c9f90dabf5193aa47c2d0714 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Mon, 17 Jan 2005 04:08:24 +0000 Subject: r4795: stronget type checking in composite connect function (This used to be commit e16f67c931ba93011d52fdf14312d12a9b09c49a) --- source4/libcli/composite/connect.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'source4/libcli') 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); } -- cgit