aboutsummaryrefslogtreecommitdiff
path: root/rpcap-protocol.c
diff options
context:
space:
mode:
Diffstat (limited to 'rpcap-protocol.c')
-rw-r--r--rpcap-protocol.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/rpcap-protocol.c b/rpcap-protocol.c
index a7375f47..39658aa6 100644
--- a/rpcap-protocol.c
+++ b/rpcap-protocol.c
@@ -188,7 +188,7 @@ rpcap_msg_type_string(uint8 type)
return NULL;
return replies[type];
} else {
- if (type > NUM_REQ_TYPES)
+ if (type >= NUM_REQ_TYPES)
return NULL;
return requests[type];
}