fix crash bug in pidl generated client code, this
authorStefan Metzmacher <metze@samba.org>
Wed, 17 Oct 2007 08:59:24 +0000 (10:59 +0200)
committerStefan Metzmacher <metze@samba.org>
Wed, 17 Oct 2007 08:59:24 +0000 (10:59 +0200)
commitf37f19f817874e885e70456328e0d3693fc24c9c
tree3395bb3d37be3aeae1ad3dd0dc432c91e028f71c
parentd2a42b4b53362bd3873467ad8849a5e884c818d2
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.

Note: this is just cosmetic for the 3.0.x tree, as
rpccli_wkssvc_NetWkstaEnumUsers and rpccli_wkssvc_NetWkstaTransportEnum
are not used.

metze
source/librpc/gen_ndr/cli_wkssvc.c