diff options
author | brian <brian@FreeBSD.org> | 2002-04-27 23:04:40 +0800 |
---|---|---|
committer | brian <brian@FreeBSD.org> | 2002-04-27 23:04:40 +0800 |
commit | c024270ada171d8e9f30ab057b89272193564c3f (patch) | |
tree | 4a50b9fda50a223da463fa8072dbdc21af70da69 /net | |
parent | 6067e59ad6e1b9b2793d21b7cdca83c1285e8511 (diff) | |
download | freebsd-ports-gnome-c024270ada171d8e9f30ab057b89272193564c3f.tar.gz freebsd-ports-gnome-c024270ada171d8e9f30ab057b89272193564c3f.tar.zst freebsd-ports-gnome-c024270ada171d8e9f30ab057b89272193564c3f.zip |
Avoid looking up the -1th element of an array
Diffstat (limited to 'net')
-rw-r--r-- | net/gnu-radius/files/patch-symtab.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/net/gnu-radius/files/patch-symtab.c b/net/gnu-radius/files/patch-symtab.c new file mode 100644 index 000000000000..c1616834b72d --- /dev/null +++ b/net/gnu-radius/files/patch-symtab.c @@ -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]; |