X-Git-Url: https://code.citadel.org/?p=citadel.git;a=blobdiff_plain;f=citadel%2Ffile_ops.c;h=69e49c45e9625c9a543128ca45fbe87f8d862fd6;hp=9040c4c746b4d009ba5cad19ebc91644be48c1b3;hb=597503be136bf68b8370870021a6bd8b68ec31db;hpb=861a6f1d475f1e6e480b026f0796a6a19b8897a1 diff --git a/citadel/file_ops.c b/citadel/file_ops.c index 9040c4c74..69e49c45e 100644 --- a/citadel/file_ops.c +++ b/citadel/file_ops.c @@ -70,9 +70,8 @@ int network_talking_to(const char *nodename, long len, int operation) { (GetCount(nttlist) == 0)) break; Pos = GetNewHashPos(nttlist, 1); - GetHashPosFromKey (nttlist, nodename, len, Pos); - - DeleteEntryFromHash(nttlist, Pos); + if (GetHashPosFromKey (nttlist, nodename, len, Pos)) + DeleteEntryFromHash(nttlist, Pos); DeleteHashPos(&Pos); syslog(LOG_DEBUG, "nttlist: removed <%s>\n", nodename);