Another off by one error found by coverity (CID 83), using > instead of >= when comparing index against array size.

svn path=/trunk/; revision=17521
This commit is contained in:
Luis Ontanon 2006-03-08 10:20:09 +00:00
parent 3fa91ab7be
commit 83296ec679
1 changed files with 1 additions and 1 deletions

View File

@ -485,7 +485,7 @@ int netxray_open(wtap *wth, int *err, gchar **err_info)
switch (hdr.captype) {
case CAPTYPE_NDIS:
if (hdr.timeunit > NUM_NETXRAY_TIMEUNITS) {
if (hdr.timeunit >= NUM_NETXRAY_TIMEUNITS) {
*err = WTAP_ERR_UNSUPPORTED;
*err_info = g_strdup_printf(
"netxray: Unknown timeunit %u for Ethernet/CAPTYPE_NDIS version %.8s capture",