]> git.samba.org - samba.git/blobdiff - source3/libsmb/clientgen.c
s3:libsmb: move cli_state->pending to cli_state->conn.pending
[samba.git] / source3 / libsmb / clientgen.c
index 766817d98f00c60dfc103b0fd5bd7fa85bb4d8dc..b84b1812e824a03f6c3d4c993b3e3da3c8a45e23 100644 (file)
@@ -237,7 +237,7 @@ struct cli_state *cli_state_create(TALLOC_CTX *mem_ctx,
        if (cli->outgoing == NULL) {
                goto error;
        }
-       cli->pending = NULL;
+       cli->conn.pending = NULL;
 
        cli->desthost = talloc_strdup(cli, desthost);
        if (cli->desthost == NULL) {
@@ -329,8 +329,8 @@ static void _cli_shutdown(struct cli_state *cli)
        /*
         * Need to free pending first, they remove themselves
         */
-       while (cli->pending) {
-               talloc_free(cli->pending[0]);
+       while (cli->conn.pending) {
+               talloc_free(cli->conn.pending[0]);
        }
        TALLOC_FREE(cli);
 }