OSSP CVS Repository

ossp - Difference in ossp-pkg/lmtp2nntp/nntp.c versions 1.12 and 1.13
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [History

ossp-pkg/lmtp2nntp/nntp.c 1.12 -> 1.13

--- nntp.c       2001/08/23 08:10:12     1.12
+++ nntp.c       2001/08/23 08:36:16     1.13
@@ -135,7 +135,7 @@
      * "Duplicate".  Typical welcome string is "200 host InterNetNews NNRP
      * server INN 2.3.2 ready (posting * ok)."
      */
-    if (str_parse(line, "m/^200.*\\sINN\\s/")) {
+    if (strncmp(line, "200", 3) == 0 && strstr(line, " INN ") != NULL) {
         nntp->kludgeinn441dup = TRUE;
         /*fprintf(stderr, "DEBUG: INN kludge activated!\n"); */
     }

CVSTrac 2.0.1