diff --git a/src/vm/History.cc b/src/vm/History.cc index 3f7d0b9bf6..cfc8e6989c 100644 --- a/src/vm/History.cc +++ b/src/vm/History.cc @@ -241,6 +241,11 @@ int History::select(SqlDB * db) unset_callback(); + if ( hostname.empty() ) + { + rc = -1; + } + if ( rc == 0 ) // Regenerate non-persistent data { non_persistent_data();