Rev 11214: Ignore interfaces that don't exist remotely. in
file:///home/jelmer/bzr.samba/4.0-mgmt/
Jelmer Vernooij
jelmer at samba.org
Tue Jan 16 14:26:36 GMT 2007
------------------------------------------------------------
revno: 11214
revision-id: jelmer at samba.org-20070116142619-6bvxkq01uug52obt
parent: jelmer at samba.org-20070116133625-lv5c7ur8vcpnogxk
committer: Jelmer Vernooij <jelmer at samba.org>
branch nick: 4.0-mgmt
timestamp: Tue 2007-01-16 15:26:19 +0100
message:
Ignore interfaces that don't exist remotely.
modified:
source/torture/rpc/mgmt.c svn-v2:6 at 0c0555d6-39d7-0310-84fc-f1cc0bd64818-branches%2fSAMBA_4_0-source%2ftorture%2frpc%2fmgmt.c
=== modified file 'source/torture/rpc/mgmt.c'
--- a/source/torture/rpc/mgmt.c 2007-01-16 13:36:25 +0000
+++ b/source/torture/rpc/mgmt.c 2007-01-16 14:26:19 +0000
@@ -216,21 +216,23 @@
printf("\nTesting pipe '%s'\n", l->table->name);
- if (b->transport == NCACN_IP_TCP) {
- status = dcerpc_epm_map_binding(loop_ctx, b, l->table, NULL);
- if (!NT_STATUS_IS_OK(status)) {
- printf("Failed to map port for uuid %s\n",
- GUID_string(loop_ctx, &l->table->syntax_id.uuid));
- talloc_free(loop_ctx);
- continue;
- }
- } else {
- b->endpoint = talloc_strdup(b, l->table->name);
+ status = dcerpc_epm_map_binding(loop_ctx, b, l->table, NULL);
+ if (!NT_STATUS_IS_OK(status)) {
+ printf("Failed to map port for uuid %s\n",
+ GUID_string(loop_ctx, &l->table->syntax_id.uuid));
+ talloc_free(loop_ctx);
+ continue;
}
lp_set_cmdline("torture:binding", dcerpc_binding_string(loop_ctx, b));
status = torture_rpc_connection(loop_ctx, &p, &dcerpc_table_mgmt);
+ if (NT_STATUS_EQUAL(status, NT_STATUS_OBJECT_NAME_NOT_FOUND)) {
+ printf("Interface not available - skipping\n");
+ talloc_free(loop_ctx);
+ continue;
+ }
+
if (!NT_STATUS_IS_OK(status)) {
talloc_free(loop_ctx);
ret = False;
More information about the samba-cvs
mailing list