Skip to content

Comments

Fix infinite loop from empty password#1

Open
alexk-etsy wants to merge 1 commit intoAlexRRR:masterfrom
alexk-etsy:fix-nopasswd
Open

Fix infinite loop from empty password#1
alexk-etsy wants to merge 1 commit intoAlexRRR:masterfrom
alexk-etsy:fix-nopasswd

Conversation

@alexk-etsy
Copy link

If you use xor 'encryption' but have an empty password the client ends up in an infinite loop. This change skips the entire key repetition + xoring step if the key is empty.

For reference, this behavior is supported by the official send_nsca client (see utils.c)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant