diff --git a/openvpn/ssl/proto.hpp b/openvpn/ssl/proto.hpp index 40303a51..5afd3f40 100644 --- a/openvpn/ssl/proto.hpp +++ b/openvpn/ssl/proto.hpp @@ -1065,6 +1065,17 @@ class ProtoContext : public logging::LoggingMixin const std::string * + { + if (!extra_peer_info) + return nullptr; + for (const auto &kv : *extra_peer_info) + { + if (kv.key == key) + return &kv.value; + } + return nullptr; + }; // supports op32 and P_DATA_V2 and expects a push reply @@ -1083,11 +1094,17 @@ class ProtoContext : public logging::LoggingMixin