fix rhizome/mdp debugging for when slot is NULL.

This commit is contained in:
gardners 2013-08-25 21:57:41 +09:30
parent 24f4b789f3
commit 39785313f3

View File

@ -1371,7 +1371,7 @@ int rhizome_received_content(unsigned char *bidprefix,
} else {
if (config.debug.rhizome)
DEBUGF("Ignoring received block: slot=%p, version=%016llx, slot->bidVersion=%016llx, slot->state=%d (should be %d)",
slot,version,slot->bidVersion,slot->state,RHIZOME_FETCH_RXFILEMDP);
slot,version,slot?slot->bidVersion:0,slot?slot->state:-999,RHIZOME_FETCH_RXFILEMDP);
}
// if we get a packet containing an entire payload