From 9079b678ee660ccdae6a129dc3e6adbb47fea756 Mon Sep 17 00:00:00 2001 From: Theodore Tso Date: Tue, 21 Sep 1993 23:23:17 +0000 Subject: [PATCH] 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 --- src/kdc/network.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.26.2