mirror of
https://github.com/samba-team/samba.git
synced 2025-11-29 16:23:52 +03:00
r4795: stronget type checking in composite connect function
This commit is contained in:
committed by
Gerald (Jerry) Carter
parent
1ea59d1146
commit
e16f67c931
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user