aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMichael Brown <mcb30@etherboot.org>2008-09-26 03:39:35 +0100
committerMichael Brown <mcb30@etherboot.org>2008-09-26 03:39:35 +0100
commit6936c40fef84ab61fa57b7a5ec3f84e9c26f9829 (patch)
tree51824a72a7a9d8e0459fa1dd4ff2969096267d8b /src
parente2d5788716684889a4ea5548942e206414c06bbd (diff)
downloadipxe-6936c40fef84ab61fa57b7a5ec3f84e9c26f9829.tar.gz
[settings] Allow for setting fetchers to fail in fetchf_hex()
Diffstat (limited to 'src')
-rw-r--r--src/core/settings.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/settings.c b/src/core/settings.c
index a1299ee2e..3e9eb18aa 100644
--- 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 )