summaryrefslogtreecommitdiffstats
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
commit48bf12d23ee39ccc7c19363012abd48f43dfac11 (patch)
tree79177ee4cc920c6abccf1bb084ede3c030c21f7c
parent7710b4f48d3e8532df5e37f99a779758f750efdb (diff)
downloadsamba-48bf12d23ee39ccc7c19363012abd48f43dfac11.tar.gz
samba-48bf12d23ee39ccc7c19363012abd48f43dfac11.tar.xz
samba-48bf12d23ee39ccc7c19363012abd48f43dfac11.zip
if the tdb stored driver isn't formatted right then return a default
driver
-rw-r--r--source/printing/nt_printing.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/printing/nt_printing.c b/source/printing/nt_printing.c
index 54212f6c211..7df1aaf405a 100644
--- a/source/printing/nt_printing.c
+++ b/source/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));