From: Matthew Beeching Date: Thu, 29 Aug 2019 01:40:16 +0000 (+0100) Subject: Fix for issue with SASL account names X-Git-Url: https://jfr.im/git/irc/evilnet/x3.git/commitdiff_plain/91889fec644e55e3ca3a513b6dd25e7ef9a7a39f?hp=4351f7dfb3b91b764d64354b1a37fb28a0687323 Fix for issue with SASL account names --- diff --git a/src/nickserv.c b/src/nickserv.c index c3ef1d5..9c866b6 100644 --- a/src/nickserv.c +++ b/src/nickserv.c @@ -2127,6 +2127,10 @@ struct handle_info *loc_auth(char *sslfp, char *handle, char *password, char *us handle = hi->handle; } + /* Ensure handle is valid if not found in internal DB */ + if (!hi && !is_valid_handle(handle)) + return 0; + #ifdef WITH_LDAP if (nickserv_conf.ldap_enable && (password != NULL)) { ldap_result = ldap_check_auth(handle, password);