Bug 1548 - (printerdata).hnd.getprinterdriver segfault
Summary: (printerdata).hnd.getprinterdriver segfault
Alias: None
Product: Samba 3.0
Classification: Unclassified
Component: python (show other bugs)
Version: 3.0.5
Hardware: s390 Linux
: P3 normal
Target Milestone: none
Assignee: Tim Potter
QA Contact: Samba QA Contact
Depends on:
Reported: 2004-07-22 05:25 UTC by Daniel Jarboe
Modified: 2005-08-24 10:19 UTC (History)
0 users

See Also:

patch for segfault and version (python spoolss getprinterdriver) (1.00 KB, patch)
2004-07-22 05:29 UTC, Daniel Jarboe
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Jarboe 2004-07-22 05:25:44 UTC
Patch provided below

getprinterdriver segfaults because arguments to cli_spoolss_getprinterdriver 
were flipped around (char *arch="Windows NT x86" and int version=2 were 

Also, version could not be specified.  Against a test W2K3 server version 2 
returned: WERR_UNKNOWN_PRINTER_DRIVER.  Added version to the end of accepted 

Added ZERO_STRUCT(ctr) for consistency.
Comment 1 Daniel Jarboe 2004-07-22 05:29:11 UTC
Created attachment 576 [details]
patch for segfault and version (python spoolss getprinterdriver)

Thanks for samba and thanks for samba python.

~ Daniel
Comment 2 Tim Potter 2004-07-22 21:40:50 UTC
Fixed.  I'm glad someone is using the Python stuff!
Comment 3 Gerald (Jerry) Carter (dead mail address) 2005-02-07 09:56:13 UTC
originally against 3.0.5rc1 (which was 34.0.6rc1 due to the security release).
Comment 4 Gerald (Jerry) Carter (dead mail address) 2005-08-24 10:19:25 UTC
sorry for the same, cleaning up the database to prevent unecessary reopens of bugs.