/*
- * $Id: peer_digest.cc,v 1.66 1998/12/16 00:07:20 wessels Exp $
+ * $Id: peer_digest.cc,v 1.67 1998/12/16 05:21:37 wessels Exp $
*
* DEBUG: section 72 Peer Digest Routines
* AUTHOR: Alex Rousskov
/* inform peer (if any) that we are gone */
if (cbdataValid(p))
peerNoteDigestGone(p);
- cbdataUnlock(p); /* must unlock, valid or not */
+ cbdataUnlock(p); /* must unlock, valid or not */
peerDigestClean(pd);
cbdataFree(pd);
PeerDigest *pd = data;
time_t req_time;
- assert(cbdataValid(pd));
+ /*
+ * you can't assert(cbdataValid(pd)) -- if its not valid this
+ * function never gets called
+ */
assert(!pd->flags.requested);
pd->times.next_check = 0; /* unknown */