spoolss: clear DriverInfo on GetPrinterDriver2 error
authorDavid Disseldorp <ddiss@samba.org>
Wed, 17 Dec 2014 14:21:33 +0000 (15:21 +0100)
committerAndreas Schneider <asn@cryptomilk.org>
Fri, 19 Dec 2014 14:40:42 +0000 (15:40 +0100)
commitfb9ecb044ee986ab3496da6cbad162a224378475
tree1c24ed734a7861e417247b823263e117236e0d45
parent89869e090c56a3f83b451b437f9c3f40a231dd24
spoolss: clear DriverInfo on GetPrinterDriver2 error

In handling a spoolss GetPrinterDriver2 request, the handler may
return an immediate error if one of the input parameters is invalid.
If this is done without zeroing the 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