From: Urs Janßen <urs@tin.org>
To: tin-dev@tin.org
Subject: Re: [tin 2.6.6] snapshots
Date: Thu, 23 Apr 2026 19:52:20 +0200
Message-ID: <mailman.36.1776966743.1827.tin-dev@tin.org>

Urs Janßen wrote:
> New snapshots available.

and the "usual" patch which should be applied :-(

=== modified file 'src/nntplib.c'
--- old/src/nntplib.c	2026-04-14 20:19:05 +0000
+++ new/src/nntplib.c	2026-04-23 17:45:20 +0000
@@ -1474,14 +1474,16 @@
 							FreeIfNeeded(nntp_caps.headers_id);
 							nntp_caps.headers_id = my_strdup("");
 						} else if (!strncasecmp(ptr, "AUTHINFO", 8)) {
-							if (strtok(ptr, WS) == ptr) /* AUTHINFO without args */
+							if (strlen(ptr) == 8)  /* AUTHINFO without args */ {
 								nntp_caps.authinfo_state = TRUE;
-							else {
-								while ((d = strtok(NULL, WS)) != NULL) {
-									if (!strcasecmp(d, "USER"))
-										nntp_caps.authinfo_user = TRUE;
-									if (!strcasecmp(d, "SASL"))
-										nntp_caps.authinfo_sasl = TRUE;
+}							else {
+								if (strtok(ptr, WS) != NULL) { /* skip initial AUTHINFO */
+									while ((d = strtok(NULL, WS)) != NULL) {
+										if (!strcasecmp(d, "USER"))
+											nntp_caps.authinfo_user = TRUE;
+										if (!strcasecmp(d, "SASL"))
+											nntp_caps.authinfo_sasl = TRUE;
+									}
 								}
 							}
 						} else if (!strncasecmp(ptr, "SASL", 4)) {



