ignore IDENT responses with OSTYPE == OTHER
authorEric Allman <eric@ucbvax.Berkeley.EDU>
Tue, 28 Mar 1995 02:43:03 +0000 (18:43 -0800)
committerEric Allman <eric@ucbvax.Berkeley.EDU>
Tue, 28 Mar 1995 02:43:03 +0000 (18:43 -0800)
SCCS-vsn: usr.sbin/sendmail/src/daemon.c 8.75

usr/src/usr.sbin/sendmail/src/daemon.c

index 9380707..127b631 100644 (file)
@@ -12,9 +12,9 @@
 
 #ifndef lint
 #ifdef DAEMON
 
 #ifndef lint
 #ifdef DAEMON
-static char sccsid[] = "@(#)daemon.c   8.74 (Berkeley) %G% (with daemon mode)";
+static char sccsid[] = "@(#)daemon.c   8.75 (Berkeley) %G% (with daemon mode)";
 #else
 #else
-static char sccsid[] = "@(#)daemon.c   8.74 (Berkeley) %G% (without daemon mode)";
+static char sccsid[] = "@(#)daemon.c   8.75 (Berkeley) %G% (without daemon mode)";
 #endif
 #endif /* not lint */
 
 #endif
 #endif /* not lint */
 
@@ -696,6 +696,14 @@ getauthinfo(fd)
        }
 
        /* p now points to the OSTYPE field */
        }
 
        /* p now points to the OSTYPE field */
+       while (isascii(*p) && isspace(*p))
+               p++;
+       if (strncasecmp(p, "other", 5) == 0 &&
+           (p[5] == ':' || p[5] == ' ' || p[5] == ',' || p[5] == '\0'))
+       {
+               /* not useful information */
+               goto noident;
+       }
        p = strchr(p, ':');
        if (p == NULL)
        {
        p = strchr(p, ':');
        if (p == NULL)
        {