check for mux service by ISMUX(), not by != NORM_TYPE

(the assumption can bite us if we extend se_type to have more cases).
This commit is contained in:
itojun 2000-07-03 23:40:59 +00:00
parent 73c658e7dd
commit 0f20cdad3f

View File

@ -1,4 +1,4 @@
/* $NetBSD: inetd.c,v 1.63 2000/07/03 23:37:17 itojun Exp $ */
/* $NetBSD: inetd.c,v 1.64 2000/07/03 23:40:59 itojun Exp $ */
/*-
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@ -77,7 +77,7 @@ __COPYRIGHT("@(#) Copyright (c) 1983, 1991, 1993, 1994\n\
#if 0
static char sccsid[] = "@(#)inetd.c 8.4 (Berkeley) 4/13/94";
#else
__RCSID("$NetBSD: inetd.c,v 1.63 2000/07/03 23:37:17 itojun Exp $");
__RCSID("$NetBSD: inetd.c,v 1.64 2000/07/03 23:40:59 itojun Exp $");
#endif
#endif /* not lint */
@ -1424,7 +1424,7 @@ do { \
buf0 = buf1 = sz0 = sz1 = NULL;
if ((buf0 = strchr(sep->se_proto, ',')) != NULL) {
/* Not meaningful for Tcpmux services. */
if (sep->se_type != NORM_TYPE) {
if (ISMUX(sep)) {
syslog(LOG_ERR, "%s: can't specify buffer sizes for "
"tcpmux services", sep->se_service);
goto more;