Correct the usage of tvb_memeql() after r35558: it doesn't return true
authorsfisher <sfisher@f5534014-38df-0310-8fa8-9805f1628bb7>
Fri, 4 Mar 2011 00:17:01 +0000 (00:17 +0000)
committersfisher <sfisher@f5534014-38df-0310-8fa8-9805f1628bb7>
Fri, 4 Mar 2011 00:17:01 +0000 (00:17 +0000)
if the values are the same; we have to check for "== 0" to see if they
are the same.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@36135 f5534014-38df-0310-8fa8-9805f1628bb7

epan/dissectors/packet-ntp.c

index 574ff6fa3765269c11f902696b19e817a1299400..c4bb580f26a192715da73515935c034670ed0cb2 100644 (file)
@@ -765,7 +765,7 @@ dissect_ntp_std(tvbuff_t *tvb, proto_tree *ntp_tree, guint8 flags)
                g_snprintf (buff, NTP_TS_SIZE, "Unidentified reference source '%.4s'",
                        tvb_get_ephemeral_string(tvb, 12, 4));
                for (i = 0; primary_sources[i].id; i++) {
-                       if (tvb_memeql(tvb, 12, primary_sources[i].id, 4)) {
+                       if (tvb_memeql(tvb, 12, primary_sources[i].id, 4) == 0) {
                                g_snprintf(buff, NTP_TS_SIZE, "%s",
                                        primary_sources[i].data);
                                break;