Skip to content

Commit

Permalink
Fix socks client auth pointer
Browse files Browse the repository at this point in the history
  • Loading branch information
Jackarain committed Sep 12, 2024
1 parent 6ba769f commit 0597112
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions proxy/include/proxy/socks_client.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -160,16 +160,13 @@ namespace proxy {
for (size_t i = 0; i < ulen; i++)
write<uint8_t>(username[i], auth);

auth += ulen;

// password length.
const auto plen = static_cast<uint8_t>(passwd.size());
write<uint8_t>(plen, auth);

// password.
for (size_t i = 0; i < plen; i++)
write<uint8_t>(passwd[i], auth);
auth += plen;

request.commit(bytes_to_write);

Expand Down

0 comments on commit 0597112

Please sign in to comment.