diff options
-rw-r--r-- | source3/rpc_client/cli_pipe.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/source3/rpc_client/cli_pipe.c b/source3/rpc_client/cli_pipe.c index 824c32e8d8..7a05c9b5fb 100644 --- a/source3/rpc_client/cli_pipe.c +++ b/source3/rpc_client/cli_pipe.c @@ -51,7 +51,6 @@ static const struct ndr_interface_table *pipe_names[] = &ndr_table_ntsvcs, &ndr_table_epmapper, &ndr_table_drsuapi, - NULL }; static const char *get_pipe_name_from_iface( @@ -92,7 +91,7 @@ const char *get_pipe_name_from_syntax(TALLOC_CTX *mem_ctx, const char *result; int i; - for (i = 0; pipe_names[i]; i++) { + for (i = 0; i<ARRAY_SIZE(pipe_names); i++) { if (ndr_syntax_id_equal(&pipe_names[i]->syntax_id, interface)) { result = get_pipe_name_from_iface( |