diff options
author | rgrimes <rgrimes@FreeBSD.org> | 1995-06-11 19:33:05 +0000 |
---|---|---|
committer | rgrimes <rgrimes@FreeBSD.org> | 1995-06-11 19:33:05 +0000 |
commit | 1b1ee5553889e207087539ddafa5dfd4e28bd585 (patch) | |
tree | ba998dfb4fcad03e00a5cbf58e2a0ad648bab6e6 /usr.sbin/inetd | |
parent | b1a97daa1e06ab0de3071f979965878fd056292b (diff) | |
download | FreeBSD-src-1b1ee5553889e207087539ddafa5dfd4e28bd585.zip FreeBSD-src-1b1ee5553889e207087539ddafa5dfd4e28bd585.tar.gz |
Merge RELENG_2_0_5 into HEAD
Diffstat (limited to 'usr.sbin/inetd')
-rw-r--r-- | usr.sbin/inetd/inetd.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/usr.sbin/inetd/inetd.c b/usr.sbin/inetd/inetd.c index 5f8fa49..3d921f2 100644 --- a/usr.sbin/inetd/inetd.c +++ b/usr.sbin/inetd/inetd.c @@ -40,7 +40,7 @@ static char copyright[] = #ifndef lint /* from: @(#)inetd.c 8.4 (Berkeley) 4/13/94"; */ static char inetd_c_rcsid[] = - "$Id: inetd.c,v 1.4 1994/12/21 19:08:45 wollman Exp $"; + "$Id: inetd.c,v 1.5.2.1 1995/06/05 01:01:19 davidg Exp $"; #endif /* not lint */ /* @@ -372,11 +372,14 @@ main(argc, argv, envp) */ if (sep->se_bi && sep->se_bi->bi_fn == (void (*)()) tcpmux) { - sep = tcpmux(ctrl); - if (sep == NULL) { + struct servtab *tsep; + + tsep = tcpmux(ctrl); + if (tsep == NULL) { close(ctrl); continue; } + sep = tsep; } } else ctrl = sep->se_fd; |