spoolss: clear DriverInfo on GetPrinterDriver2 error
commit1719bdaffe2a13166256aa24526dbd0b3aaeb0ca
authorDavid Disseldorp <ddiss@samba.org>
Wed, 17 Dec 2014 14:21:33 +0000 (17 15:21 +0100)
committerKarolin Seeger <kseeger@samba.org>
Wed, 14 Jan 2015 20:58:09 +0000 (14 21:58 +0100)
treea63f45b62950d8167c5d024d14e534b093a8ee90
parenta9dab567e882a6ffd376c5f39112cf00866c2d63
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>
(cherry picked from commit fb9ecb044ee986ab3496da6cbad162a224378475)
source3/rpc_server/spoolss/srv_spoolss_nt.c