fix crash bug in pidl generated client code, this
authorStefan Metzmacher <metze@samba.org>
Wed, 17 Oct 2007 08:35:51 +0000 (10:35 +0200)
committerStefan Metzmacher <metze@samba.org>
Wed, 17 Oct 2007 08:35:51 +0000 (10:35 +0200)
commitcb98869fa189ce2a926a00fa9077a114f31a5d45
treefe7b706d340395c3a7dee75510f6fb7e05d0a19e
parent2ef50e325c2183385286b994216624dc3a309ff3
fix crash bug in pidl generated client code, this
could have happend with [in,out,unique] pointers
when the clients sends a valid pointer, but the server
reponse with a NULL pointer (as samba-3.0.26a do for some calls).

I've tested with midl to see how windows handles this situation
and also the reverse case where the client sends NULL and
the server reposnse with non-NULL.

It appears that midl generated code just ignores this
and only copies the result if both pointers are non-NULL.

metze
source/librpc/gen_ndr/cli_dfs.c
source/librpc/gen_ndr/cli_lsa.c
source/librpc/gen_ndr/cli_netlogon.c
source/librpc/gen_ndr/cli_srvsvc.c
source/librpc/gen_ndr/cli_svcctl.c
source/librpc/gen_ndr/cli_winreg.c
source/librpc/gen_ndr/cli_wkssvc.c