diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-03-22 09:28:50 +0100 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-03-22 09:28:50 +0100 |
commit | 622ab49311d7bc898772e96260f35373ef4f6496 (patch) | |
tree | b8a2d98cb503456d0186bf7e7d24e6f2dda82d29 /openbsc/src/ipaccess | |
parent | 91ed1f75c4cab317a8971b1971c4f7691a2e70a8 (diff) |
ipa-firmware: Remove dummy check...
We have derefenced that way before and would have crashed already.
Diffstat (limited to 'openbsc/src/ipaccess')
-rw-r--r-- | openbsc/src/ipaccess/ipaccess-firmware.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/openbsc/src/ipaccess/ipaccess-firmware.c b/openbsc/src/ipaccess/ipaccess-firmware.c index d9b9d0a4a..e0695a629 100644 --- a/openbsc/src/ipaccess/ipaccess-firmware.c +++ b/openbsc/src/ipaccess/ipaccess-firmware.c @@ -63,9 +63,6 @@ int ipaccess_analyze_file(int fd, const unsigned int st_size, const unsigned int } - if (!firmware_header) - return -1; - if (ntohl(firmware_header->file_length) != st_size) { fprintf(stderr, "The filesize and the header do not match.\n"); return -1; |