From e95655393380e186ff56bddf58848f44506bc622 Mon Sep 17 00:00:00 2001 From: Ken Raeburn Date: Wed, 6 Aug 2008 15:54:44 +0000 Subject: [PATCH] Fix test for accept failure git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20612 dc483132-0cff-0310-8789-dd5450dbe970 --- src/appl/bsd/krlogind.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/appl/bsd/krlogind.c b/src/appl/bsd/krlogind.c index 0a240b33a..cd362a4aa 100644 --- a/src/appl/bsd/krlogind.c +++ b/src/appl/bsd/krlogind.c @@ -538,7 +538,7 @@ int main(argc, argv) int child_pid; fd = accept(s, (struct sockaddr *) &from, &fromlen); - if (s < 0) { + if (fd < 0) { if (errno != EINTR) syslog(LOG_ERR, "accept: %s", error_message(errno)); continue; -- 2.26.2