[tin-dev] [tin 2.6.6] snapshots
Urs Janßen
urs at tin.org
Thu Apr 23 19:52:20 CEST 2026
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)) {
More information about the tin-dev
mailing list