r2710: continue with the new style of providing a parent context whenever
[jelmer/samba4-debian.git] / source / client / client.c
index 68b30acc67afe9934c4047a0ce2503f5cc2f86af..9a70c2e09f43f10a2b8215f0b00c3bf4677d64a0 100644 (file)
@@ -2727,7 +2727,7 @@ static struct smbcli_state *do_connect(const char *server, const char *share)
 
  again:
        /* have to open a new connection */
-       if (!(c=smbcli_state_init()) || !smbcli_socket_connect(c, server_n)) {
+       if (!(c=smbcli_state_init(NULL)) || !smbcli_socket_connect(c, server_n)) {
                d_printf("Connection to %s failed\n", server_n);
                return NULL;
        }
@@ -2858,7 +2858,7 @@ static int do_message_op(void)
 
        server_name = dest_ip ? dest_ip : desthost;
 
-       if (!(cli=smbcli_state_init()) || !smbcli_socket_connect(cli, server_name)) {
+       if (!(cli=smbcli_state_init(NULL)) || !smbcli_socket_connect(cli, server_name)) {
                d_printf("Connection to %s failed\n", server_name);
                return 1;
        }