aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Mann <mmann78@netscape.net>2015-08-08 09:57:14 -0400
committerAlexis La Goutte <alexis.lagoutte@gmail.com>2015-08-08 15:04:24 +0000
commit454f08d0037902dd412b8fc7a6812effa132066d (patch)
treea42a9804eb58b7e5f113478fca86d853e64d3bfe
parent9a16a693cfb8da547190eb939845eb86f1f7c998 (diff)
If SOCKS server doesnt't require authentication, then client should be ready for commands.
Bug: 11417 Change-Id: I62c6d94923dcda2ef8297086faac7d7c4b85a3fb Reviewed-on: https://code.wireshark.org/review/9923 Reviewed-by: Michael Mann <mmann78@netscape.net> Petri-Dish: Michael Mann <mmann78@netscape.net> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
-rw-r--r--epan/dissectors/packet-socks.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/epan/dissectors/packet-socks.c b/epan/dissectors/packet-socks.c
index 12faf1e47c..55a2aa2af7 100644
--- a/epan/dissectors/packet-socks.c
+++ b/epan/dissectors/packet-socks.c
@@ -808,6 +808,8 @@ server_state_machine_v5( socks_hash_entry_t *hash_info, tvbuff_t *tvb,
{
case NO_AUTHENTICATION:
hash_info->serverState = serverCommandReply;
+ /* If there is no authentication, client should expect command immediately */
+ hash_info->clientState = clientV5Command;
break;
case USER_NAME_AUTHENTICATION:
hash_info->serverState = serverUserReply;