]> jfr.im git - irc/UndernetIRC/iauthd-c.git/commitdiff
iauth_xquery: Handle removed services in iauth_xreply_ok()
authorMichael Poole <redacted>
Sun, 14 Mar 2021 14:30:08 +0000 (10:30 -0400)
committerMichael Poole <redacted>
Sun, 14 Mar 2021 17:34:48 +0000 (13:34 -0400)
modules/iauth_xquery.c

index 08f7c00bee9b458f200293044826e851052901e0..f1abd4bb453283d9c0fab0bd3b9ca4f28617b994 100644 (file)
@@ -689,7 +689,7 @@ int iauth_xreply_ok(struct iauth_request *request, const char *service)
     for (ii = 0; ii < iauth_xquery_services.used; ++ii)
     {
         srv = iauth_xquery_services.vec[ii];
-        if (strcasecmp(service, srv->name))
+        if (!srv || strcasecmp(service, srv->name))
             continue;
         if ((cli->ok_mask & (1u << ii)) != 0)
             return 1;