diff options
Diffstat (limited to 'util')
-rw-r--r-- | util/uhash_loader.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/util/uhash_loader.c b/util/uhash_loader.c index 550067b8..e608701c 100644 --- a/util/uhash_loader.c +++ b/util/uhash_loader.c @@ -56,6 +56,7 @@ void checkhash(int h) int *p = &(SHM->hash_head[h]), ch, deep=0; while(*p != -1) { + if(*p <-1 || *p >= MAX_USERS) {*p=-1; return;} ch = string_hash( SHM->userid[*p]); if(ch!=h) { |