chiark
/
gitweb
/
~ian
/
gnupg2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
tools: Improve error handling.
[gnupg2.git]
/
tools
/
gpgconf-comp.c
diff --git
a/tools/gpgconf-comp.c
b/tools/gpgconf-comp.c
index 85eb80ab54387c64bac2d80a826a8845a4faa573..180fd65c29aa998fccf2e16c8f0196f2a8e779c2 100644
(file)
--- a/
tools/gpgconf-comp.c
+++ b/
tools/gpgconf-comp.c
@@
-3328,6
+3328,8
@@
gc_component_change_options (int component, estream_t in, estream_t out,
change_one_value (option, runtime, flags, new_value, 0);
}
+ if (length < 0 || gpgrt_ferror (in))
+ gc_error (1, errno, "error reading stream 'in'");
}
/* Now that we have collected and locally verified the changes,