aboutsummaryrefslogtreecommitdiffstats
path: root/src/tls
diff options
context:
space:
mode:
authorlloyd <[email protected]>2012-09-06 22:39:42 +0000
committerlloyd <[email protected]>2012-09-06 22:39:42 +0000
commitd25cad6ab69d4869e5a966a9f9c7f5b73e3790a3 (patch)
treedfcf1a7daf98328fd074d80782cdc2e2deb3db13 /src/tls
parent1d8c294e25844d7a2895e93ed050e590681fdf37 (diff)
DTLS versions count backwards
Diffstat (limited to 'src/tls')
-rw-r--r--src/tls/tls_version.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/tls/tls_version.cpp b/src/tls/tls_version.cpp
index 32a408830..ac4dadc43 100644
--- a/src/tls/tls_version.cpp
+++ b/src/tls/tls_version.cpp
@@ -43,6 +43,9 @@ bool Protocol_Version::operator>(const Protocol_Version& other) const
"Version comparing " + to_string() +
" with " + other.to_string());
+ if(this->is_datagram_protocol())
+ return m_version < other.m_version; // goes backwards
+
return m_version > other.m_version;
}