[settings] Allow for setting fetchers to fail in fetchf_hex()
authorMichael Brown <mcb30@etherboot.org>
Fri, 26 Sep 2008 02:39:35 +0000 (03:39 +0100)
committerMichael Brown <mcb30@etherboot.org>
Fri, 26 Sep 2008 02:39:35 +0000 (03:39 +0100)
src/core/settings.c

index a1299ee..3e9eb18 100644 (file)
@@ -1040,6 +1040,8 @@ static int fetchf_hex ( struct settings *settings, struct setting *setting,
 
                check_len = fetch_setting ( settings, setting, raw,
                                            sizeof ( raw ) );
 
                check_len = fetch_setting ( settings, setting, raw,
                                            sizeof ( raw ) );
+               if ( check_len < 0 )
+                       return check_len;
                assert ( check_len == raw_len );
                
                if ( len )
                assert ( check_len == raw_len );
                
                if ( len )