]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Revert unintended "res == 0" change which sneaked in as part of killing rfc1035_errno...
authorHenrik Nordstrom <henrik@henriknordstrom.net>
Mon, 10 May 2010 20:39:35 +0000 (22:39 +0200)
committerHenrik Nordstrom <henrik@henriknordstrom.net>
Mon, 10 May 2010 20:39:35 +0000 (22:39 +0200)
lib/tests/testRFC1035.cc

index d716e9c4d5e89581d64a9de183cd0067b08cab54..9af9df97c73701a794705c5399fc7d93d4de9221 100644 (file)
@@ -132,6 +132,6 @@ void testRFC1035::testBugPacketHeadersOnly()
     res = rfc1035MessageUnpack(buf, len, &msg);
 
     CPPUNIT_ASSERT(0 == memcmp("The DNS reply message is corrupt or could not be safely parsed.", rfc1035ErrorMessage(res), 63));
-    CPPUNIT_ASSERT(res == 0);
+    CPPUNIT_ASSERT(res < 0);
     CPPUNIT_ASSERT(msg == NULL);
 }