[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r4940 - GNUnet/src/applications/session
From: |
gnunet |
Subject: |
[GNUnet-SVN] r4940 - GNUnet/src/applications/session |
Date: |
Fri, 8 Jun 2007 00:10:16 -0600 (MDT) |
Author: grothoff
Date: 2007-06-08 00:10:16 -0600 (Fri, 08 Jun 2007)
New Revision: 4940
Modified:
GNUnet/src/applications/session/connect.c
Log:
bad check
Modified: GNUnet/src/applications/session/connect.c
===================================================================
--- GNUnet/src/applications/session/connect.c 2007-06-08 06:02:10 UTC (rev
4939)
+++ GNUnet/src/applications/session/connect.c 2007-06-08 06:10:16 UTC (rev
4940)
@@ -322,18 +322,18 @@
identity->getPeerIdentity(&foreignHello->publicKey,
&hc);
if ( (0 != memcmp(&hc,
- &hostId,
+ hostId,
sizeof(PeerIdentity))) ||
(0 != memcmp(&hc,
&foreignHello->senderIdentity,
sizeof(PeerIdentity))) ) {
GE_BREAK(NULL,
- (0 != memcmp(&hc,
- &foreignHello->senderIdentity,
- sizeof(PeerIdentity))));
+ 0 == memcmp(&hc,
+ &foreignHello->senderIdentity,
+ sizeof(PeerIdentity)));
GE_BREAK(NULL,
0 == memcmp(&hc,
- &hostId,
+ hostId,
sizeof(PeerIdentity)));
GE_BREAK(NULL, 0);
FREE(foreignHello);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r4940 - GNUnet/src/applications/session,
gnunet <=