Fix test for accept failure
authorKen Raeburn <raeburn@mit.edu>
Wed, 6 Aug 2008 15:54:44 +0000 (15:54 +0000)
committerKen Raeburn <raeburn@mit.edu>
Wed, 6 Aug 2008 15:54:44 +0000 (15:54 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20612 dc483132-0cff-0310-8789-dd5450dbe970

src/appl/bsd/krlogind.c

index 0a240b33a5fb2ef2406811c812be89a9bf2797cf..cd362a4aa7e8c96ffdcf016e9b23a6d7a8ec81d9 100644 (file)
@@ -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;