mirror of
https://github.com/samba-team/samba.git
synced 2025-02-03 13:47:25 +03:00
s3:utils: Check return value of samba_cmdline_init() (CID 1548345)
Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
parent
a9e8cf4ff6
commit
77183ded7d
@ -591,10 +591,16 @@ int main(int argc, char **argv)
|
||||
struct dcerpc_binding_handle *h = NULL;
|
||||
struct cli_state *c = NULL;
|
||||
uint32_t flags = CLI_FULL_CONNECTION_IPC;
|
||||
bool ok;
|
||||
|
||||
samba_cmdline_init(frame,
|
||||
SAMBA_CMDLINE_CONFIG_CLIENT,
|
||||
false /* require_smbconf */);
|
||||
ok = samba_cmdline_init(frame,
|
||||
SAMBA_CMDLINE_CONFIG_CLIENT,
|
||||
false /* require_smbconf */);
|
||||
if (!ok) {
|
||||
DBG_ERR("Failed to set up cmdline parser\n");
|
||||
result = -1;
|
||||
goto out;
|
||||
}
|
||||
|
||||
pc = samba_popt_get_context("wspsearch",
|
||||
argc,
|
||||
|
Loading…
x
Reference in New Issue
Block a user