s3-spoolss: fix printer driver version deletion
authorDavid Disseldorp <ddiss@samba.org>
Thu, 12 Jan 2012 15:27:37 +0000 (16:27 +0100)
committerDavid Disseldorp <ddiss@samba.org>
Fri, 20 Jan 2012 16:43:50 +0000 (17:43 +0100)
commitb5f780c418d08fd693f666ba8be557ddf9912337
tree887ae637aab96d6fe4191d108b67e667f30018fb
parentb2c9317cd1104e6c7d70e76e995b10079726f216
s3-spoolss: fix printer driver version deletion

Spoolss delete printer driver code currently makes invalid version
assumptions based on the architecture requested by the client.

Ugly hacks are in place to cover removal of other versions (2 and 3).
This change wraps multi version deletion in a simple for loop.

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