From 98fb71782e05ae72cd6abeb38b6e0b96a50c1761 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Sun, 8 Nov 2009 10:51:34 +0100 Subject: s3: Do not reference the ndr_tables in the server calls directly This involves storing the interface table in the pipes_struct --- librpc/gen_ndr/srv_epmapper.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'librpc/gen_ndr/srv_epmapper.c') diff --git a/librpc/gen_ndr/srv_epmapper.c b/librpc/gen_ndr/srv_epmapper.c index d0c617aea6..8648b011df 100644 --- a/librpc/gen_ndr/srv_epmapper.c +++ b/librpc/gen_ndr/srv_epmapper.c @@ -15,7 +15,7 @@ static bool api_epm_Insert(pipes_struct *p) DATA_BLOB blob; struct epm_Insert *r; - call = &ndr_table_epmapper.calls[NDR_EPM_INSERT]; + call = &p->interface->calls[NDR_EPM_INSERT]; r = talloc(talloc_tos(), struct epm_Insert); if (r == NULL) { @@ -88,7 +88,7 @@ static bool api_epm_Delete(pipes_struct *p) DATA_BLOB blob; struct epm_Delete *r; - call = &ndr_table_epmapper.calls[NDR_EPM_DELETE]; + call = &p->interface->calls[NDR_EPM_DELETE]; r = talloc(talloc_tos(), struct epm_Delete); if (r == NULL) { @@ -161,7 +161,7 @@ static bool api_epm_Lookup(pipes_struct *p) DATA_BLOB blob; struct epm_Lookup *r; - call = &ndr_table_epmapper.calls[NDR_EPM_LOOKUP]; + call = &p->interface->calls[NDR_EPM_LOOKUP]; r = talloc(talloc_tos(), struct epm_Lookup); if (r == NULL) { @@ -248,7 +248,7 @@ static bool api_epm_Map(pipes_struct *p) DATA_BLOB blob; struct epm_Map *r; - call = &ndr_table_epmapper.calls[NDR_EPM_MAP]; + call = &p->interface->calls[NDR_EPM_MAP]; r = talloc(talloc_tos(), struct epm_Map); if (r == NULL) { @@ -335,7 +335,7 @@ static bool api_epm_LookupHandleFree(pipes_struct *p) DATA_BLOB blob; struct epm_LookupHandleFree *r; - call = &ndr_table_epmapper.calls[NDR_EPM_LOOKUPHANDLEFREE]; + call = &p->interface->calls[NDR_EPM_LOOKUPHANDLEFREE]; r = talloc(talloc_tos(), struct epm_LookupHandleFree); if (r == NULL) { @@ -410,7 +410,7 @@ static bool api_epm_InqObject(pipes_struct *p) DATA_BLOB blob; struct epm_InqObject *r; - call = &ndr_table_epmapper.calls[NDR_EPM_INQOBJECT]; + call = &p->interface->calls[NDR_EPM_INQOBJECT]; r = talloc(talloc_tos(), struct epm_InqObject); if (r == NULL) { @@ -483,7 +483,7 @@ static bool api_epm_MgmtDelete(pipes_struct *p) DATA_BLOB blob; struct epm_MgmtDelete *r; - call = &ndr_table_epmapper.calls[NDR_EPM_MGMTDELETE]; + call = &p->interface->calls[NDR_EPM_MGMTDELETE]; r = talloc(talloc_tos(), struct epm_MgmtDelete); if (r == NULL) { @@ -556,7 +556,7 @@ static bool api_epm_MapAuth(pipes_struct *p) DATA_BLOB blob; struct epm_MapAuth *r; - call = &ndr_table_epmapper.calls[NDR_EPM_MAPAUTH]; + call = &p->interface->calls[NDR_EPM_MAPAUTH]; r = talloc(talloc_tos(), struct epm_MapAuth); if (r == NULL) { -- cgit