diff options
author | sfisher <sfisher@f5534014-38df-0310-8fa8-9805f1628bb7> | 2007-10-30 16:32:26 +0000 |
---|---|---|
committer | sfisher <sfisher@f5534014-38df-0310-8fa8-9805f1628bb7> | 2007-10-30 16:32:26 +0000 |
commit | d0d88d5d499c545e100a8f1e52a96f6280210185 (patch) | |
tree | 2d9d1032e774279a33e21ef84f92b9c139a2b8b4 /epan/dissectors/packet-vnc.c | |
parent | d470be7d1f45e6ae6864a286a7ce348e3579adf9 (diff) |
Minor correction to protocol behavior handling when security type "none" is
selected by the client.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@23312 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan/dissectors/packet-vnc.c')
-rw-r--r-- | epan/dissectors/packet-vnc.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/epan/dissectors/packet-vnc.c b/epan/dissectors/packet-vnc.c index 0d0c74eee1..dc15843a75 100644 --- a/epan/dissectors/packet-vnc.c +++ b/epan/dissectors/packet-vnc.c @@ -549,11 +549,13 @@ vnc_startup_messages(tvbuff_t *tvb, packet_info *pinfo, gint offset, switch(security_type_selected) { case 1 : /* None */ - /* Despite the RealVNC VNC protocol document, both - 3.3/3.7 and 3.8 seem to go to the security result - next. */ - per_conversation_info->vnc_next_state = + if(per_conversation_info->client_proto_ver >= 3.008) + per_conversation_info->vnc_next_state = SECURITY_RESULT; + else + per_conversation_info->vnc_next_state = + CLIENT_INIT; + break; case 2 : /* VNC */ |