[sdb] Fix the checking of the handshake message.
authorZoltan Varga <vargaz@gmail.com>
Fri, 29 Aug 2014 19:04:40 +0000 (15:04 -0400)
committerZoltan Varga <vargaz@gmail.com>
Fri, 29 Aug 2014 19:04:40 +0000 (15:04 -0400)
mono/mini/debugger-agent.c

index 6249ed00c66ba26ebb3dc652efcc9ced30b49b7d..5919430186944c79d1bc0037ae77e8d81457d584 100644 (file)
@@ -1581,7 +1581,7 @@ transport_handshake (void)
 
        /* Read answer */
        res = transport_recv (buf, strlen (handshake_msg));
-       if ((res != strlen (handshake_msg)) || (memcmp (buf, handshake_msg, strlen (handshake_msg) != 0))) {
+       if ((res != strlen (handshake_msg)) || (memcmp (buf, handshake_msg, strlen (handshake_msg)) != 0)) {
                fprintf (stderr, "debugger-agent: DWP handshake failed.\n");
                return FALSE;
        }