aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/tls/msg_server_hello.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/tls/msg_server_hello.cpp')
-rw-r--r--src/lib/tls/msg_server_hello.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/tls/msg_server_hello.cpp b/src/lib/tls/msg_server_hello.cpp
index 4f95a5c9d..d13bc7551 100644
--- a/src/lib/tls/msg_server_hello.cpp
+++ b/src/lib/tls/msg_server_hello.cpp
@@ -66,11 +66,11 @@ Server_Hello::Server_Hello(Handshake_IO& io,
{
u16bit shared = 0;
// always using server preferences for now
- for(auto s : server_srtp)
- for(auto c : client_srtp)
+ for(auto s_srtp : server_srtp)
+ for(auto c_srtp : client_srtp)
{
- if(shared == 0 && s == c)
- shared = s;
+ if(shared == 0 && s_srtp == c_srtp)
+ shared = s_srtp;
}
if(shared)