From 50a33307c74566f94ea5bc4aa3331f371f277ce8 Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Mon, 22 Mar 2010 09:28:50 +0100 Subject: [PATCH] ipa-firmware: Remove dummy check... We have derefenced that way before and would have crashed already. --- openbsc/src/ipaccess/ipaccess-firmware.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/openbsc/src/ipaccess/ipaccess-firmware.c b/openbsc/src/ipaccess/ipaccess-firmware.c index d9b9d0a4..e0695a62 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;