summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorBill Meier <wmeier@newsguy.com>2009-12-17 16:22:50 +0000
committerBill Meier <wmeier@newsguy.com>2009-12-17 16:22:50 +0000
commit9587938020497bfe217c96799219eae666db56e5 (patch)
tree984dbe51d5bd6b5e1adc245767ad2cac7f9be944 /plugins
parent1439e56e5fba2f3b8869ecd65cf9751085edf35b (diff)
downloadwireshark-9587938020497bfe217c96799219eae666db56e5.tar.gz
From Martin Lutz: Patch tvb_memeql return check;
... tvb_memeql returns 0 for truth. See: https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=3986#c7 svn path=/trunk/; revision=31294
Diffstat (limited to 'plugins')
-rw-r--r--plugins/opcua/opcua.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/plugins/opcua/opcua.c b/plugins/opcua/opcua.c
index 0b1a89f421..a7feaebfb6 100644
--- a/plugins/opcua/opcua.c
+++ b/plugins/opcua/opcua.c
@@ -167,32 +167,32 @@ static void dissect_opcua_message(tvbuff_t *tvb, packet_info *pinfo, proto_tree
col_set_str(pinfo->cinfo, COL_PROTOCOL, "OpcUa");
/* parse message type */
- if (tvb_memeql(tvb, 0, "HEL", 3))
+ if (tvb_memeql(tvb, 0, "HEL", 3) == 0)
{
msgtype = MSG_HELLO;
pfctParse = parseHello;
}
- else if (tvb_memeql(tvb, 0, "ACK", 3))
+ else if (tvb_memeql(tvb, 0, "ACK", 3) == 0)
{
msgtype = MSG_ACKNOWLEDGE;
pfctParse = parseAcknowledge;
}
- else if (tvb_memeql(tvb, 0, "ERR", 3))
+ else if (tvb_memeql(tvb, 0, "ERR", 3) == 0)
{
msgtype = MSG_ERROR;
pfctParse = parseError;
}
- else if (tvb_memeql(tvb, 0, "MSG", 3))
+ else if (tvb_memeql(tvb, 0, "MSG", 3) == 0)
{
msgtype = MSG_MESSAGE;
pfctParse = parseMessage;
}
- else if (tvb_memeql(tvb, 0, "OPN", 3))
+ else if (tvb_memeql(tvb, 0, "OPN", 3) == 0)
{
msgtype = MSG_OPENSECURECHANNEL;
pfctParse = parseOpenSecureChannel;
}
- else if (tvb_memeql(tvb, 0, "CLO", 3))
+ else if (tvb_memeql(tvb, 0, "CLO", 3) == 0)
{
msgtype = MSG_CLOSESECURECHANNEL;
pfctParse = parseCloseSecureChannel;