summaryrefslogtreecommitdiff
path: root/backend/epson2-io.c
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff.email>2022-02-01 15:24:35 +0100
committerJörg Frings-Fürst <debian@jff.email>2022-02-01 15:24:35 +0100
commit302276dc1b90cfc972fb726ca94a23b18f4b0088 (patch)
tree33d99da40fb5fa097fdab5584d7ed550d25a33bb /backend/epson2-io.c
parent351b7328520c16730ceb46e5acae16038c42185e (diff)
New upstream version 1.1.1upstream/1.1.1
Diffstat (limited to 'backend/epson2-io.c')
-rw-r--r--backend/epson2-io.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/backend/epson2-io.c b/backend/epson2-io.c
index 9d23e2a..293a825 100644
--- a/backend/epson2-io.c
+++ b/backend/epson2-io.c
@@ -77,7 +77,8 @@ e2_send(Epson_Scanner * s, void *buf, size_t buf_size, size_t reply_len,
if (reply_len == 0) {
DBG(0,
"Cannot send this command to a networked scanner\n");
- return SANE_STATUS_INVAL;
+ *status = SANE_STATUS_INVAL;
+ return 0; /* nothing actually sent */
}
return sanei_epson_net_write(s, 0x2000, buf, buf_size,
reply_len, status);