Remove the explicit TALLOC_CTX * from cli_struct.
[samba.git] / source3 / libsmb / clidfs.c
index 037c0d6b26b1f67e87922ab7a0c5f969d7566699..469cb231d2a321c3a568f39ed74efa8fc962b595 100644 (file)
@@ -245,9 +245,12 @@ static struct cli_state *cli_cm_connect( const char *server,
                                        bool show_hdr)
 {
        struct client_connection *node;
-       
-       node = SMB_XMALLOC_P( struct client_connection );
-       
+
+       node = SMB_CALLOC_ARRAY( struct client_connection, 1);
+       if (!node) {
+               return NULL;
+       }
+
        node->cli = do_connect( server, share, show_hdr );
 
        if ( !node->cli ) {