From 88c1dbf722889a2d7379cdcbac1ce9b140a42356 Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Mon, 12 Aug 2013 17:22:15 +0200 Subject: librpc/ndr: call ndr_table_list() from all ndr_X functions. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Guenther Signed-off-by: Günther Deschner Reviewed-by: Stefan Metzmacher --- librpc/ndr/ndr_table.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'librpc/ndr') diff --git a/librpc/ndr/ndr_table.c b/librpc/ndr/ndr_table.c index 7ca04173f7..01d909436f 100644 --- a/librpc/ndr/ndr_table.c +++ b/librpc/ndr/ndr_table.c @@ -73,7 +73,7 @@ const char *ndr_interface_name(const struct GUID *uuid, uint32_t if_version) int ndr_interface_num_calls(const struct GUID *uuid, uint32_t if_version) { const struct ndr_interface_list *l; - for (l=ndr_interfaces;l;l=l->next){ + for (l=ndr_table_list();l;l=l->next){ if (GUID_equal(&l->table->syntax_id.uuid, uuid) && l->table->syntax_id.if_version == if_version) { return l->table->num_calls; @@ -89,7 +89,7 @@ int ndr_interface_num_calls(const struct GUID *uuid, uint32_t if_version) const struct ndr_interface_table *ndr_table_by_name(const char *name) { const struct ndr_interface_list *l; - for (l=ndr_interfaces;l;l=l->next) { + for (l=ndr_table_list();l;l=l->next) { if (strcasecmp(l->table->name, name) == 0) { return l->table; } @@ -103,7 +103,7 @@ const struct ndr_interface_table *ndr_table_by_name(const char *name) const struct ndr_interface_table *ndr_table_by_uuid(const struct GUID *uuid) { const struct ndr_interface_list *l; - for (l=ndr_interfaces;l;l=l->next) { + for (l=ndr_table_list();l;l=l->next) { if (GUID_equal(&l->table->syntax_id.uuid, uuid)) { return l->table; } -- cgit