kopia lustrzana https://gitlab.com/sane-project/backends
epsonds: Handle error condition. Re #279, issue 8
rodzic
e52a5bf719
commit
fe08bbee6b
|
@ -193,6 +193,8 @@ static SANE_Status esci2_cmd(epsonds_scanner* s,
|
|||
|
||||
ssize_t read = eds_recv(s, pbuf, more, &status);
|
||||
if (read != more) {
|
||||
free(pbuf);
|
||||
return SANE_STATUS_IO_ERROR;
|
||||
}
|
||||
|
||||
/* parse the received data block */
|
||||
|
|
Ładowanie…
Reference in New Issue