From: Ken Raeburn Date: Wed, 6 Aug 2008 15:54:44 +0000 (+0000) Subject: Fix test for accept failure X-Git-Tag: krb5-1.7-alpha1~532 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=e95655393380e186ff56bddf58848f44506bc622;p=krb5.git Fix test for accept failure git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20612 dc483132-0cff-0310-8789-dd5450dbe970 --- 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;