]> granicus.if.org Git - file/commitdiff
Don't return if we did not finish parsing the core info. From Radek Vokal.
authorChristos Zoulas <christos@zoulas.com>
Mon, 31 Oct 2005 13:53:40 +0000 (13:53 +0000)
committerChristos Zoulas <christos@zoulas.com>
Mon, 31 Oct 2005 13:53:40 +0000 (13:53 +0000)
src/readelf.c

index 8a61f0cde1cbdaa18803a6d7dd232714add98b17..bc2949ec63334db3e4f97c8de2e20e986736b063 100644 (file)
@@ -37,7 +37,7 @@
 #include "readelf.h"
 
 #ifndef lint
-FILE_RCSID("@(#)$Id: readelf.c,v 1.52 2005/10/17 18:41:44 christos Exp $")
+FILE_RCSID("@(#)$Id: readelf.c,v 1.53 2005/10/31 13:53:40 christos Exp $")
 #endif
 
 #ifdef ELFCORE
@@ -549,8 +549,7 @@ donote(struct magic_set *ms, unsigned char *nbuf, size_t offset, size_t size,
                            os_style_names[os_style]) == -1)
                                return size;
                        *flags |= FLAGS_DID_CORE;
-               } else
-                       return size;
+               }
        }
 
        switch (os_style) {