s3-printing: fix crash in printer_list_set_printer()
authorDavid Disseldorp <ddiss@samba.org>
Wed, 15 Feb 2012 15:30:27 +0000 (16:30 +0100)
committerKarolin Seeger <kseeger@samba.org>
Fri, 22 Jun 2012 19:38:07 +0000 (21:38 +0200)
commit050cfe9cb06369edcf4cff05e68afe46655523db
tree462a17286ce2a556e251078c21cceb7b04053142
parent1949e5a4c053c901920acede6f87996ca8a3d07b
s3-printing: fix crash in printer_list_set_printer()

The printer list database format was recently changed to accommodate for
the printcap location field.
One of the tdb_pack calls is not provided with a location string
argument, this causes a crash on some platforms.

https://bugzilla.samba.org/show_bug.cgi?id=8762
(cherry picked from commit 43f9e7400a106cd70d12cf50e84a552f3f75a294)
source3/printing/printer_list.c