mirror of
https://git.FreeBSD.org/ports.git
synced 2024-10-22 20:41:26 +00:00
Avoid looking up the -1th element of an array
This commit is contained in:
parent
934f51c421
commit
7218868189
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=58234
12
net/gnu-radius/files/patch-symtab.c
Normal file
12
net/gnu-radius/files/patch-symtab.c
Normal file
@ -0,0 +1,12 @@
|
||||
--- radlib/symtab.c.orig Tue Nov 27 12:13:36 2001
|
||||
+++ radlib/symtab.c Wed Apr 24 09:54:42 2002
|
||||
@@ -307,6 +307,9 @@
|
||||
{
|
||||
int i;
|
||||
Symbol *sym, *next;
|
||||
+
|
||||
+ if (symtab->hash_num == -1)
|
||||
+ return;
|
||||
|
||||
for (i = 0; i < hash_size[symtab->hash_num]; i++) {
|
||||
sym = symtab->sym[i];
|
Loading…
Reference in New Issue
Block a user