diff --git a/include/opendht/securedht.h b/include/opendht/securedht.h
index 11b92fb9d196354139ae19703a664b78eb7d5dac..325615cd2fe299fa5ddddf5e52807616e11ef790 100644
--- a/include/opendht/securedht.h
+++ b/include/opendht/securedht.h
@@ -70,7 +70,7 @@ public:
         return secureType(std::move(tmp_type));
     }
 
-    virtual void registerType(const ValueType& type) {
+    virtual void registerType(const ValueType& type) override {
         Dht::registerType(secureType(type));
     }
     virtual void registerType(ValueType&& type) {
diff --git a/src/dht.cpp b/src/dht.cpp
index 3575af0b5d0477de2d216d63d486606a9acb1b71..720d7eabf2a889300fb168b2bcbc5a19c17748cf 100644
--- a/src/dht.cpp
+++ b/src/dht.cpp
@@ -1131,7 +1131,7 @@ void Dht::searchSendAnnounceValue(const std::shared_ptr<Search>& sr) {
                             const auto& type = getType(a.value->type);
                             if (sn->isSynced(now) and sn->getAnnounceTime(a.value->id, type) <= now) {
                                 auto hasValue {false};
-                                uint16_t seq_no;
+                                uint16_t seq_no = 0;
                                 try {
                                     const auto& f = std::find_if(answer.fields.cbegin(), answer.fields.cend(),
                                             [&a](const std::shared_ptr<FieldValueIndex>& i){