diff --git a/contrib/src/opendht/fetch_and_patch.bat b/contrib/src/opendht/fetch_and_patch.bat
index e9208a70fd670a811eb3888e31b3a0cdfe475e54..1ecdb9e78d8db678c70a016f33f98c912c589ff8 100644
--- a/contrib/src/opendht/fetch_and_patch.bat
+++ b/contrib/src/opendht/fetch_and_patch.bat
@@ -1,6 +1,6 @@
 set BUILD=%SRC%..\build
 
-set OPENDHT_VERSION=1.3.5
+set OPENDHT_VERSION=c40750f6e4b0356881675201bbba2d47511c83de
 set OPENDHT_URL=https://github.com/savoirfairelinux/opendht/archive/%OPENDHT_VERSION%.tar.gz
 
 mkdir %BUILD%
diff --git a/contrib/src/opendht/rules.mak b/contrib/src/opendht/rules.mak
index 37c906160e647a1be825046b7b1db32e81f0014d..48c6ef9b48270c491ee51e5d1cd01f3c13aeb578 100644
--- a/contrib/src/opendht/rules.mak
+++ b/contrib/src/opendht/rules.mak
@@ -1,5 +1,5 @@
 # OPENDHT
-OPENDHT_VERSION := 6f3eafc5eea1b456a625bdf473419464eb0b202a
+OPENDHT_VERSION := c40750f6e4b0356881675201bbba2d47511c83de
 OPENDHT_URL := https://github.com/savoirfairelinux/opendht/archive/$(OPENDHT_VERSION).tar.gz
 
 PKGS += opendht