vlserver: Use correct literal in bounds check
[openafs.git] / src / vlserver / cnvldb.c
index 6fdc56f..f31d31c 100644 (file)
@@ -535,7 +535,7 @@ convert_mhentries(int oldfd, int newfd, struct vlheader_2 *header,
                basei = (addr >> 16) & 0xff;
                index = addr & 0xffff;
 
-               if ((basei >= VL_ADDREXTBLK_SIZE) || !base[basei]) {
+               if ((basei >= VL_MAX_ADDREXTBLKS) || !base[basei]) {
                    fprintf(stderr,
                            "Warning: mh entry %d has no IP address; ignored!!\n",
                            i);