Ignore:
Timestamp:
Jun 16, 2009, 5:52:30 PM (16 years ago)
Author:
Herwig Bauernfeind
Message:

Update 3.2 to 3.2.12

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/samba-3.2.x/source/utils/net_rpc.c

    r235 r272  
    119119        DOM_SID *domain_sid;
    120120        const char *domain_name;
     121        int ret = -1;
    121122
    122123        /* make use of cli_state handed over as an argument, if possible */
     
    140141        if (!(mem_ctx = talloc_init("run_rpc_command"))) {
    141142                DEBUG(0, ("talloc_init() failed\n"));
    142                 cli_shutdown(cli);
    143                 return -1;
     143                goto fail;
    144144        }
    145145       
     
    147147                                              &domain_name);
    148148        if (!NT_STATUS_IS_OK(nt_status)) {
    149                 cli_shutdown(cli);
    150                 return -1;
     149                goto fail;
    151150        }
    152151
     
    161160                                DEBUG(0, ("Could not initialise schannel netlogon pipe. Error was %s\n",
    162161                                        nt_errstr(nt_status) ));
    163                                 cli_shutdown(cli);
    164                                 return -1;
     162                                goto fail;
    165163                        }
    166164                } else {
     
    170168                                        cli_get_pipe_name(pipe_idx),
    171169                                        nt_errstr(nt_status) ));
    172                                 cli_shutdown(cli);
    173                                 return -1;
     170                                goto fail;
    174171                        }
    175172                }
     
    181178                DEBUG(1, ("rpc command function failed! (%s)\n", nt_errstr(nt_status)));
    182179        } else {
     180                ret = 0;
    183181                DEBUG(5, ("rpc command function succedded\n"));
    184182        }
     
    190188        }
    191189
     190fail:
    192191        /* close the connection only if it was opened here */
    193192        if (!cli_arg) {
     
    196195       
    197196        talloc_destroy(mem_ctx);
    198         return (!NT_STATUS_IS_OK(nt_status));
     197        return ret;
    199198}
    200199
Note: See TracChangeset for help on using the changeset viewer.