BUG 9574: Fix a possible null pointer dereference in spoolss.
commita2d68842ea33733fa7900831ed10e73f820afcf7
authorAndreas Schneider <asn@samba.org>
Fri, 18 Jan 2013 17:04:17 +0000 (18 18:04 +0100)
committerKarolin Seeger <kseeger@samba.org>
Tue, 22 Jan 2013 11:00:49 +0000 (22 12:00 +0100)
tree6887c4bad773e3586a92b4a60c3ce85d145ff49c
parent43810c80936c8f509cc2adba6193dd4c55325875
BUG 9574: Fix a possible null pointer dereference in spoolss.

If the the client enumerates the printers and didn't specify a
servername we have a null pointer dereference, so the process serving
the connection crashes.

Reviewed-by: David Disseldorp <ddiss@samba.org>
Autobuild-User(master): David Disseldorp <ddiss@samba.org>
Autobuild-Date(master): Mon Jan 21 13:30:11 CET 2013 on sn-devel-104
(cherry picked from commit c38fb0b106b62e42a5b75b1c78386bb8912c7d7e)
source3/rpc_server/spoolss/srv_spoolss_nt.c