From 39785313f36a023aa0df945d44e2ed31d402c8df Mon Sep 17 00:00:00 2001 From: gardners Date: Sun, 25 Aug 2013 21:57:41 +0930 Subject: [PATCH] fix rhizome/mdp debugging for when slot is NULL. --- rhizome_fetch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rhizome_fetch.c b/rhizome_fetch.c index 4a4f2445..4d417bdc 100644 --- a/rhizome_fetch.c +++ b/rhizome_fetch.c @@ -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