From: Theodore Tso Date: Tue, 21 Sep 1993 23:23:17 +0000 (+0000) Subject: Don't check file descriptor for secondary port if it is not defined X-Git-Tag: krb5-1.0-beta3~192 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=9079b678ee660ccdae6a129dc3e6adbb47fea756;p=krb5.git Don't check file descriptor for secondary port if it is not defined git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@2646 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/kdc/network.c b/src/kdc/network.c index faf9f36f3..6dbcad642 100644 --- a/src/kdc/network.c +++ b/src/kdc/network.c @@ -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)