fix conditional in find_section_by_index()

Signed-off-by: Seth Jennings <sjenning@redhat.com>
This commit is contained in:
Seth Jennings 2014-03-27 10:24:28 -05:00
parent 634b9cee78
commit 026362fab6
1 changed files with 1 additions and 1 deletions

View File

@ -173,7 +173,7 @@ int is_rela_section(struct section *sec)
struct section *find_section_by_index(struct table *table, unsigned int index)
{
if (index == 0 || index >= table->nr)
if (index == 0 || index > table->nr)
return NULL;
return &((struct section *)(table->data))[index-1];
}