diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2005-02-20 02:57:38 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:10:48 -0500 |
commit | 64112074e9772aead31092c8713e077d1aff050b (patch) | |
tree | a3b2a33dd00e5c65877004a5906653b1481e367a /source4/rpc_server | |
parent | 111b6c2b9a4695369815d71a0c06f931778228b0 (diff) | |
download | samba-64112074e9772aead31092c8713e077d1aff050b.tar.gz samba-64112074e9772aead31092c8713e077d1aff050b.tar.bz2 samba-64112074e9772aead31092c8713e077d1aff050b.zip |
r5465: Add support to multiple levels of pointers in pidl.
Also add a new function to echo.idl that tests this behaviour.
(This used to be commit e5eb5e847e75f2b7b041a66f84d9b919ddf27739)
Diffstat (limited to 'source4/rpc_server')
-rw-r--r-- | source4/rpc_server/echo/rpc_echo.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/source4/rpc_server/echo/rpc_echo.c b/source4/rpc_server/echo/rpc_echo.c index a2d2e552d6..daf16e12d7 100644 --- a/source4/rpc_server/echo/rpc_echo.c +++ b/source4/rpc_server/echo/rpc_echo.c @@ -151,6 +151,15 @@ static NTSTATUS echo_TestSurrounding(struct dcesrv_call_state *dce_call, TALLOC_ return NT_STATUS_OK; } +static uint16_t echo_TestDoublePointer(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx, struct echo_TestDoublePointer *r) +{ + if (!*r->in.data) + return 0; + if (!**r->in.data) + return 0; + return ***r->in.data; +} + static long echo_TestSleep(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx, struct echo_TestSleep *r) { struct echo_TestSleep_private *p; |