1
0
mirror of https://github.com/samba-team/samba.git synced 2025-11-30 20:23:49 +03:00

r4795: stronget type checking in composite connect function

This commit is contained in:
Andrew Tridgell
2005-01-17 04:08:24 +00:00
committed by Gerald (Jerry) Carter
parent 1ea59d1146
commit e16f67c931

View File

@@ -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);
}