spoolss: clear PrinterInfo on GetPrinter error
authorDavid Disseldorp <ddiss@samba.org>
Wed, 17 Dec 2014 15:54:42 +0000 (16:54 +0100)
committerAndreas Schneider <asn@cryptomilk.org>
Fri, 19 Dec 2014 14:40:43 +0000 (15:40 +0100)
commita11e97b79645ff0d9e7d20f5318a979194a858fe
tree832c4a7ac122390551fa544977c9bea76bc42b95
parentc9fccb5018f9a19bb654b9ad79aa716e37a274d6
spoolss: clear PrinterInfo on GetPrinter error

If an error is returned without zeroing a pre-allocated @info pointer,
then marshalling of the response will fail.

Bug: https://bugzilla.samba.org/show_bug.cgi?id=10984

Signed-off-by: David Disseldorp <ddiss@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
source3/rpc_server/spoolss/srv_spoolss_nt.c