If using inetd, set file descriptor of socket to 0
authorEzra Peisach <epeisach@mit.edu>
Sat, 3 Jun 1995 21:22:00 +0000 (21:22 +0000)
committerEzra Peisach <epeisach@mit.edu>
Sat, 3 Jun 1995 21:22:00 +0000 (21:22 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5941 dc483132-0cff-0310-8789-dd5450dbe970

src/appl/sample/sserver/ChangeLog
src/appl/sample/sserver/sserver.c

index 14a79dab702468a20e77b0f695fdb3800a9247b8..754cb3a024fc616f3c108080245bee70dffd0b84 100644 (file)
@@ -1,3 +1,7 @@
+Sat Jun  3 17:20:28 1995  Ezra Peisach  <epeisach@kangaroo.mit.edu>
+
+       * sserver.c (main): If using inetd, set file descriptor to 0.
+
 Wed May 10 15:18:19 1995  Ezra Peisach  (epeisach@kangaroo.mit.edu)
 
        * sserver.M: Document options.
index d97f5febd671deae527b6bddcd834b9bfe1735e0..166ebf585f093dfc0f4bc01d850391fd420ba1bd 100644 (file)
@@ -173,6 +173,7 @@ main(argc, argv)
            syslog(LOG_ERR, "getpeername: %m");
            exit(1);
        }
+       sock = 0;
     }
 
     peeraddr.addrtype = peername.sin_family;