@@ -111,6 +111,11 @@ LoggerImpl::lookupMessage(const MessageID& ident) {
void
LoggerImpl::setInterprocessSync(isc::util::InterprocessSync* sync) {
+ // If we are passed NULL, change nothing. The old sync_ object will
+ // continue to be used.
+ if (sync == NULL)
+ return;
+
delete sync_;
sync_ = sync;
}