Author: tridge
Date: 2005-01-17 04:08:24 +0000 (Mon, 17 Jan 2005)
New Revision: 4795

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=4795

Log:
stronget type checking in composite connect function

Modified:
   branches/SAMBA_4_0/source/libcli/composite/connect.c


Changeset:
Modified: branches/SAMBA_4_0/source/libcli/composite/connect.c
===================================================================
--- branches/SAMBA_4_0/source/libcli/composite/connect.c        2005-01-17 
04:07:33 UTC (rev 4794)
+++ branches/SAMBA_4_0/source/libcli/composite/connect.c        2005-01-17 
04:08:24 UTC (rev 4795)
@@ -279,7 +279,8 @@
 */
 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 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);
 }
 

Reply via email to