summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2013-08-12 17:22:15 +0200
committerGünther Deschner <gd@samba.org>2013-09-20 13:06:50 +0200
commit88c1dbf722889a2d7379cdcbac1ce9b140a42356 (patch)
tree53f16ac3a912f0a41d8d125e7467c630dc4e0712
parentea3db09f696b199171e78720d95197f458b15e93 (diff)
downloadsamba-88c1dbf722889a2d7379cdcbac1ce9b140a42356.tar.gz
samba-88c1dbf722889a2d7379cdcbac1ce9b140a42356.tar.bz2
samba-88c1dbf722889a2d7379cdcbac1ce9b140a42356.zip
librpc/ndr: call ndr_table_list() from all ndr_X functions.
Guenther Signed-off-by: Günther Deschner <gd@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
-rw-r--r--librpc/ndr/ndr_table.c6
1 files changed, 3 insertions, 3 deletions
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;
}