[1445] in Kerberos-V5-bugs
Re: appl/sample/sserver/sserver
daemon@ATHENA.MIT.EDU (epeisach@MIT.EDU)
Sat Jun 3 17:29:40 1995
From: epeisach@MIT.EDU
Date: Sat, 3 Jun 1995 17:29:33 -0400
To: boone@prep.net, mikeb@datametrics.com
Cc: krb5-bugs@MIT.EDU
In-Reply-To: [1423]
The problem you reported involved starting the sample server from inetd
and it would fail while using the command line options would work.
I have tracked down the problem and I am including a patch below. It
may (probably) not patch directly in your sources as ours have changed
slightly, but essentially the problem is that if a port number is not
specified, the sock file descriptor is left set to -1. Therefore the
input from the socket is ignored and the server falls over.
I will try to write a small program which simulates inetd in starting up
the server and incorporate it into the dejagnu tests so it will not
happen again.
Ezra
Index: sserver.c
===================================================================
RCS file: /mit/krb5/.cvsroot/src/appl/sample/sserver/sserver.c,v
retrieving revision 5.23
diff -c -r5.23 sserver.c
*** sserver.c 1995/05/10 20:25:27 5.23
--- sserver.c 1995/06/03 21:14:32
***************
*** 173,178 ****
--- 173,179 ----
syslog(LOG_ERR, "getpeername: %m");
exit(1);
}
+ sock = 0;
}
peeraddr.addrtype = peername.sin_family;