summaryrefslogtreecommitdiffstats
path: root/backend_dnpds40.c
diff options
context:
space:
mode:
authorSolomon Peachy <pizza@shaftnet.org>2019-12-19 21:59:59 -0500
committerSolomon Peachy <pizza@shaftnet.org>2019-12-19 21:59:59 -0500
commitf5cd0e2312e6af5131d914cc8ac75b47944e811d (patch)
treef71fa2da7e5661375f595870eda29d4ec1317f5f /backend_dnpds40.c
parent13ea55f24d86fafd0dd1e1e556f51c87c09175bd (diff)
downloadselphy_print-f5cd0e2312e6af5131d914cc8ac75b47944e811d.tar.gz
selphy_print-f5cd0e2312e6af5131d914cc8ac75b47944e811d.tar.bz2
selphy_print-f5cd0e2312e6af5131d914cc8ac75b47944e811d.zip
dnp: Fix a bad error test.
Diffstat (limited to 'backend_dnpds40.c')
-rw-r--r--backend_dnpds40.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/backend_dnpds40.c b/backend_dnpds40.c
index 9dbad3b..6c44d6c 100644
--- a/backend_dnpds40.c
+++ b/backend_dnpds40.c
@@ -897,6 +897,7 @@ static int dnpds40_attach(void *vctx, struct libusb_device_handle *dev, int type
#endif
#ifdef CITIZEN_ONLY /* Only allow CITIZEN printers to work. */
if (ctx->mfg != 1)
+ return CUPS_BACKEND_FAILED
#endif
}
} else {