diff options
author | Martin Kaiser <wireshark@kaiser.cx> | 2014-01-08 13:56:24 +0000 |
---|---|---|
committer | Martin Kaiser <wireshark@kaiser.cx> | 2014-01-08 13:56:24 +0000 |
commit | 10da33247d0d118db613a9d5218f237948e93dc4 (patch) | |
tree | a40ba87c462a7f6381fa7fa0ae71f8f1cd5479ca /epan/dissectors | |
parent | e8c0ef0acfdf8b40dbbae6a5b66b378c42924a87 (diff) |
Coverity 280379
if the key is missing, it's always a request
svn path=/trunk/; revision=54660
Diffstat (limited to 'epan/dissectors')
-rw-r--r-- | epan/dissectors/packet-memcache.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/epan/dissectors/packet-memcache.c b/epan/dissectors/packet-memcache.c index 02fbccc271..46ebd76bff 100644 --- a/epan/dissectors/packet-memcache.c +++ b/epan/dissectors/packet-memcache.c @@ -434,9 +434,8 @@ dissect_key (tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, val_to_str (opcode, opcode_vals, "Opcode %d"), request ? "Request" : "Response"); } else if (missing) { - proto_tree_add_expert_format(tree, pinfo, &ei_key_missing, tvb, offset, 0, "%s %s must have Key", - val_to_str (opcode, opcode_vals, "Opcode %d"), - request ? "Request" : "Response"); + proto_tree_add_expert_format(tree, pinfo, &ei_key_missing, tvb, offset, 0, "%s Request must have Key", + val_to_str (opcode, opcode_vals, "Opcode %d")); } } |