diff --git a/contrib/src/opendht/fetch_and_patch.bat b/contrib/src/opendht/fetch_and_patch.bat
index 01c7939a1134146dfa9ca6a422b5895146cee8a4..4cabc25eb9db2984043161d70aee8ccb9dcb53ec 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=4501217c2131e99ea1748801b07753b09fac6626
+set OPENDHT_VERSION=a789ffe7ae37a638e7e551706138ae6246fbd522
 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 b50e96e7ce5763e0e8ab8c381c7fba92bb5aeb8a..699fa7622a7467d9cc1c013aaddaaa4bafdd3046 100644
--- a/contrib/src/opendht/rules.mak
+++ b/contrib/src/opendht/rules.mak
@@ -1,5 +1,5 @@
 # OPENDHT
-OPENDHT_VERSION := 1.4.0.1
+OPENDHT_VERSION := a789ffe7ae37a638e7e551706138ae6246fbd522
 OPENDHT_URL := https://github.com/savoirfairelinux/opendht/archive/$(OPENDHT_VERSION).tar.gz
 
 PKGS += opendht