]> jfr.im git - irc/evilnet/x3.git/commitdiff
Fix for issue with SASL account names
authorMatthew Beeching <redacted>
Thu, 29 Aug 2019 01:40:16 +0000 (02:40 +0100)
committerMatthew Beeching <redacted>
Thu, 29 Aug 2019 01:40:16 +0000 (02:40 +0100)
src/nickserv.c

index c3ef1d5a8da6d38c4f4b66554d4f6b2d9c9d5e4a..9c866b65bea7f4152e91eed51e7c580c2b23456a 100644 (file)
@@ -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);