s3-spoolss: fix _spoolss_EnumPrinterDataEx error path.
authorGünther Deschner <gd@samba.org>
Wed, 18 Mar 2009 20:36:40 +0000 (21:36 +0100)
committerGünther Deschner <gd@samba.org>
Wed, 18 Mar 2009 20:56:38 +0000 (21:56 +0100)
commit43182fdff89bc5c238e7a90cf93500cef850ecd5
treec1ec2af696162724f30941e55e9ce830719d2b89
parent7a85a87edf3a589235b932a3c802278e78da4ec5
s3-spoolss: fix _spoolss_EnumPrinterDataEx error path.

When a windows clients queries the "" key, we need to make sure to return with
the appropriate error (WERR_INVALID_PARAM in that case), and not fall through
to the buffer size handling macros. Found by torture test.

Guenther
source3/rpc_server/srv_spoolss_nt.c