mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
r3045: Allow object-uuid@... binding strings
(This used to be commit 38e9290bcf
)
This commit is contained in:
parent
d78ae0b646
commit
80a30263aa
@ -3553,6 +3553,18 @@ static void usage(poptContext pc)
|
||||
exit(1);
|
||||
}
|
||||
|
||||
static BOOL is_binding_string(const char *binding_string)
|
||||
{
|
||||
TALLOC_CTX *mem_ctx = talloc_init("is_binding_string");
|
||||
struct dcerpc_binding binding_struct;
|
||||
NTSTATUS status;
|
||||
|
||||
status = dcerpc_parse_binding(mem_ctx, binding_string, &binding_struct);
|
||||
|
||||
talloc_destroy(mem_ctx);
|
||||
return NT_STATUS_IS_OK(status);
|
||||
}
|
||||
|
||||
/****************************************************************************
|
||||
main program
|
||||
****************************************************************************/
|
||||
@ -3648,7 +3660,7 @@ static void usage(poptContext pc)
|
||||
}
|
||||
|
||||
/* see if its a RPC transport specifier */
|
||||
if (strncmp(argv_new[1], "ncacn_", 6) == 0) {
|
||||
if (is_binding_string(argv_new[1])) {
|
||||
lp_set_cmdline("torture:binding", argv_new[1]);
|
||||
} else {
|
||||
char *binding = NULL;
|
||||
|
Loading…
Reference in New Issue
Block a user