spoolss: clear FormInfo on GetForm error
authorDavid Disseldorp <ddiss@samba.org>
Wed, 17 Dec 2014 14:29:52 +0000 (15:29 +0100)
committerAndreas Schneider <asn@cryptomilk.org>
Fri, 19 Dec 2014 14:40:43 +0000 (15:40 +0100)
commitb113ed6043622cdec68f3a70631b363594f3a8d0
tree303b143021604e5c58288215d58fa60d44815681
parentfb9ecb044ee986ab3496da6cbad162a224378475
spoolss: clear FormInfo on GetForm error

In handling a spoolss GetForm 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