# HG changeset patch # User aidan # Date 1318516913 -3600 # Node ID 935bf9f13cfc66d20b8ac91d8cd480e8e4494e06 # Parent 166a3782491cb52957eb39652f7e821788a99ebb foo diff -r 166a3782491c -r 935bf9f13cfc servlib/bundling/BundleDaemon.cc --- a/servlib/bundling/BundleDaemon.cc Thu Oct 13 14:59:44 2011 +0100 +++ b/servlib/bundling/BundleDaemon.cc Thu Oct 13 15:41:53 2011 +0100 @@ -2687,17 +2687,18 @@ (char*)bpq_block.query_val()); event->daemon_only_ = true; } - } - // don't accept local responses - else if (bpq_block.kind() == BPQBlock::KIND_RESPONSE && !local_bundle) { - if (bpq_cache()->add_response_bundle(bundle, &bpq_block) && - event->source_ != EVENTSRC_STORE) { + } else if (bpq_block.kind() == BPQBlock::KIND_RESPONSE) { + // don't accept local responses + if (!local_bundle) { - bundle->set_in_datastore(true); - actions_->store_add(bundle); - } - } - else { + if (bpq_cache()->add_response_bundle(bundle, &bpq_block) && + event->source_ != EVENTSRC_STORE) { + + bundle->set_in_datastore(true); + actions_->store_add(bundle); + } + } + } else { log_err_p("/dtn/daemon/bpq", "ERROR - BPQ Block: invalid kind %d", bpq_block.kind()); NOTREACHED;