diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/host/osmocon/osmocon.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/host/osmocon/osmocon.c b/src/host/osmocon/osmocon.c index 9090d276..92372141 100644 --- a/src/host/osmocon/osmocon.c +++ b/src/host/osmocon/osmocon.c @@ -290,6 +290,7 @@ int read_file(const char *filename, int chainload) if ((st.st_size > MAX_DNLOAD_SIZE) && (dnload.mode != MODE_ROMLOAD)) { fprintf(stderr, "The maximum file size is 64kBytes (%u bytes)\n", MAX_DNLOAD_SIZE); + close(fd); return -EFBIG; } } else { |