]> jfr.im git - irc/evilnet/x3.git/commitdiff
Fix for minor bug where an invalid SASL PLAIN authentication packet can result in...
authorMatthew Beeching <redacted>
Wed, 6 Jan 2016 04:31:47 +0000 (04:31 +0000)
committerMatthew Beeching <redacted>
Wed, 6 Jan 2016 04:31:47 +0000 (04:31 +0000)
src/nickserv.c

index b2518dcafdcdfeba97ff84ccbc1ef2703958e249..ee3ebdcf5233d6fc63f9abfc9a6c6331aaf43475 100644 (file)
@@ -5790,7 +5790,7 @@ sasl_packet(struct SASLSession *session)
 
         log_module(NS_LOG, LOG_DEBUG, "SASL: Checking supplied credentials");
 
-        if (c != 2)
+        if ((c != 2) || !(*authcid))
         {
             log_module(NS_LOG, LOG_DEBUG, "SASL: Incomplete credentials supplied");
             irc_sasl(session->source, session->uid, "D", "F");