From f94a98151294e8204780b4573253a971904b5c2b Mon Sep 17 00:00:00 2001 From: Leonid Evdokimov Date: Fri, 8 Apr 2016 19:55:32 +0300 Subject: [PATCH] Fix typo introduced in 003765ba, fixes #81 --- socks5.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/socks5.c b/socks5.c index f38b6771..ac48e152 100644 --- a/socks5.c +++ b/socks5.c @@ -82,7 +82,7 @@ static void socks5_instance_init(redsocks_instance *instance) if (config->login || config->password) { bool deauth = false; if (config->login && config->password) { - deauth = socks5_is_valid_cred(config->login, config->password); + deauth = ! socks5_is_valid_cred(config->login, config->password); } else { log_error(LOG_WARNING, "Socks5 needs either both login and password or none of them"); deauth = true;