s3-spoolss: fix printer driver version deletion
authorDavid Disseldorp <ddiss@samba.org>
Thu, 12 Jan 2012 15:27:37 +0000 (16:27 +0100)
committerKarolin Seeger <kseeger@samba.org>
Mon, 23 Jan 2012 19:46:22 +0000 (20:46 +0100)
commit54bc662adb24be9950c827446130b91504965c8c
treeaae36564037965f23130e5249a73c9c03b2f2f64
parentc14586647451a878fdc911ee4be699b3e6485b83
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.
source3/rpc_server/spoolss/srv_spoolss_nt.c