diff options
-rw-r--r-- | pidl/lib/Parse/Pidl/Samba3/ServerNDR.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pidl/lib/Parse/Pidl/Samba3/ServerNDR.pm b/pidl/lib/Parse/Pidl/Samba3/ServerNDR.pm index 6604abe91e..33dc68e753 100644 --- a/pidl/lib/Parse/Pidl/Samba3/ServerNDR.pm +++ b/pidl/lib/Parse/Pidl/Samba3/ServerNDR.pm @@ -234,7 +234,7 @@ sub ParseDispatchFunction($) my $op = "NDR_".uc($fn->{NAME}); pidl "case $op: {"; indent; - pidl "struct $fn->{NAME} *r = _r;"; + pidl "struct $fn->{NAME} *r = (struct $fn->{NAME} *)_r;"; CallWithStruct("cli->pipes_struct", "mem_ctx", $fn, sub { pidl "return NT_STATUS_NO_MEMORY;"; }); pidl "return NT_STATUS_OK;"; |