diff --git a/src/debug.c b/src/debug.c index 16ca27a1..30ae08e6 100644 --- a/src/debug.c +++ b/src/debug.c @@ -101,6 +101,11 @@ void computeDatasetDigest(unsigned char *final) { /* Make sure the key is loaded if VM is active */ o = lookupKeyRead(db,keyobj); + if (o == NULL) { + /* Key expired on lookup? Try the next one. */ + decrRefCount(keyobj); + continue; + } aux = htonl(o->type); mixDigest(digest,&aux,sizeof(aux));