http://git.etherboot.org
/
people
/
sha0
/
gpxe.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e2d5788
)
[settings] Allow for setting fetchers to fail in fetchf_hex()
author
Michael Brown
<mcb30@etherboot.org>
Fri, 26 Sep 2008 02:39:35 +0000
(
03:39
+0100)
committer
Michael Brown
<mcb30@etherboot.org>
Fri, 26 Sep 2008 02:39:35 +0000
(
03:39
+0100)
src/core/settings.c
patch
|
blob
|
history
diff --git
a/src/core/settings.c
b/src/core/settings.c
index
a1299ee
..
3e9eb18
100644
(file)
--- a/
src/core/settings.c
+++ b/
src/core/settings.c
@@
-1040,6
+1040,8
@@
static int fetchf_hex ( struct settings *settings, struct setting *setting,
check_len = fetch_setting ( settings, setting, raw,
sizeof ( raw ) );
+ if ( check_len < 0 )
+ return check_len;
assert ( check_len == raw_len );
if ( len )