summaryrefslogtreecommitdiffstats
path: root/source/printing
diff options
context:
space:
mode:
Diffstat (limited to 'source/printing')
-rw-r--r--source/printing/nt_printing.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/source/printing/nt_printing.c b/source/printing/nt_printing.c
index f302d357cda..45080f8acc2 100644
--- a/source/printing/nt_printing.c
+++ b/source/printing/nt_printing.c
@@ -2897,6 +2897,12 @@ BOOL printer_driver_in_use (char *arch, char *driver)
info.parameters);
safe_free(dbuf.dptr);
+
+ if (ret == -1) {
+ DEBUG (0,("printer_driver_in_use: tdb_unpack failed for printer %s\n",
+ info.printername));
+ continue;
+ }
DEBUG (10,("printer_driver_in_use: Printer - %s (%s)\n",
info.printername, info.drivername));