mirror of
https://github.com/openharmony/third_party_backends.git
synced 2026-07-20 22:56:14 -04:00
Merge branch 'escl-fix-segfault' into 'master'
Escl: fix segfault See merge request sane-project/backends!739
This commit is contained in:
@@ -84,6 +84,7 @@ escl_scan(capabilities_t *scanner, const ESCL_Device *device, char *scanJob, cha
|
||||
CURLcode res = curl_easy_perform(curl_handle);
|
||||
if (res != CURLE_OK) {
|
||||
DBG( 1, "Unable to scan: %s\n", curl_easy_strerror(res));
|
||||
scanner->real_read = 0;
|
||||
fclose(scanner->tmp);
|
||||
scanner->tmp = NULL;
|
||||
status = SANE_STATUS_INVAL;
|
||||
|
||||
Reference in New Issue
Block a user