mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
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>
This commit is contained in:
parent
ea3db09f69
commit
88c1dbf722
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user