Don't check file descriptor for secondary port if it is not defined
authorTheodore Tso <tytso@mit.edu>
Tue, 21 Sep 1993 23:23:17 +0000 (23:23 +0000)
committerTheodore Tso <tytso@mit.edu>
Tue, 21 Sep 1993 23:23:17 +0000 (23:23 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@2646 dc483132-0cff-0310-8789-dd5450dbe970

src/kdc/network.c

index faf9f36f309802e414cb2ff0e27fe6602fe5f744..6dbcad642e53c364d8e09e5c74ff489316a9c7af 100644 (file)
@@ -151,7 +151,7 @@ const char *prog;
                                break;
                }
        }
-       if (FD_ISSET(sec_udp_port_fd, &readfds)) {
+       if ((sec_udp_port_fd > 0) && FD_ISSET(sec_udp_port_fd, &readfds)) {
                retval = process_packet(sec_udp_port_fd, prog, 1);
                if (retval) {
                        if (errcount++ > 3)