Commit d7f5527
sbchooser: fix load_secdb_from_file returning fd instead of rc
When read_file() fails, returning fd instead of rc causes callers to
miss the error since fd is a non-negative integer after close(). Fix
by returning rc.
Signed-off-by: Aditya Nair <adnair@redhat.com>1 parent ac9cc70 commit d7f5527
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
256 | 256 | | |
257 | 257 | | |
258 | 258 | | |
259 | | - | |
| 259 | + | |
260 | 260 | | |
261 | 261 | | |
262 | 262 | | |
| |||
0 commit comments