summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2000-05-29 01:28:33 +0000
committerAndrew Tridgell <tridge@samba.org>2000-05-29 01:28:33 +0000
commit23d705672eea5562c585421c2d4c0be694a7f354 (patch)
tree2b0d55b269b2c909971c4bdbb29fa858c46bb688
parentbadb7fc0d21267110e39287c897c0f956f43bb16 (diff)
downloadsamba-23d705672eea5562c585421c2d4c0be694a7f354.tar.gz
samba-23d705672eea5562c585421c2d4c0be694a7f354.tar.bz2
samba-23d705672eea5562c585421c2d4c0be694a7f354.zip
if the tdb stored driver isn't formatted right then return a default
driver (This used to be commit 48bf12d23ee39ccc7c19363012abd48f43dfac11)
-rw-r--r--source3/printing/nt_printing.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/printing/nt_printing.c b/source3/printing/nt_printing.c
index 54212f6c21..7df1aaf405 100644
--- a/source3/printing/nt_printing.c
+++ b/source3/printing/nt_printing.c
@@ -416,7 +416,7 @@ static uint32 get_a_printer_driver_3(NT_PRINTER_DRIVER_INFO_LEVEL_3 **info_ptr,
free(dbuf.dptr);
if (len != dbuf.dsize) {
- return 1;
+ return get_a_printer_driver_3_default(info_ptr, in_prt, in_arch);
}
*info_ptr = (NT_PRINTER_DRIVER_INFO_LEVEL_3 *)memdup(&driver, sizeof(driver));