network_talking_to(): fix detection whether we are already talking to a remote site.
[citadel.git] / citadel / file_ops.c
index 207a4b19010bb254845a280e3632d22fe7897842..8491948925a970546bb146e3a6040a62fba8964d 100644 (file)
@@ -81,7 +81,7 @@ int network_talking_to(const char *nodename, long len, int operation) {
                        if ((nttlist == NULL) ||
                            (GetCount(nttlist) == 0))
                                break;
-                       if (!GetHash(nttlist, nodename, len, &vdata))
+                       if (GetHash(nttlist, nodename, len, &vdata))
                                retval ++;
                        syslog(LOG_DEBUG, "nttlist: have [%d] <%s>\n", retval, nodename);
                        break;