summaryrefslogtreecommitdiff
path: root/wintest
diff options
context:
space:
mode:
authorDavid Disseldorp <ddiss@samba.org>2012-11-27 16:10:28 +0100
committerAndreas Schneider <asn@cryptomilk.org>2012-11-29 13:03:05 +0100
commit2e12deedcfdc5ce3637a125b083b0f00b208bf61 (patch)
treebe8e6e8c7a7a861ee0e06d176967f250b5c30672 /wintest
parent941bb9bb6dfd1c2dfd01696b2169e0782158ad6d (diff)
downloadsamba-2e12deedcfdc5ce3637a125b083b0f00b208bf61.tar.gz
samba-2e12deedcfdc5ce3637a125b083b0f00b208bf61.tar.bz2
samba-2e12deedcfdc5ce3637a125b083b0f00b208bf61.zip
spoolss: fix segfault when "default devmode" is disabled
Currently when "default devmode" is explicitly disabled, and a printer is added with a null device mode, spoolssd crashes in copy_devicemode(). Both construct_printer_info2() and construct_printer_info8() code paths currently unconditionally attempt to copy a printers device mode, without checking whether one is present. This change fixes this regression such that construct_printer_info*() functions check for a null device mode before copying. https://bugzilla.samba.org/show_bug.cgi?id=9433 Reviewed-by: Andreas Schneider <asn@samba.org> Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org> Autobuild-Date(master): Thu Nov 29 13:03:05 CET 2012 on sn-devel-104
Diffstat (limited to 'wintest')
0 files changed, 0 insertions, 0 deletions