From: Theodore Tso Date: Fri, 10 Jun 1994 18:49:46 +0000 (+0000) Subject: Don't bomb out if the secondary port cannot be initialized X-Git-Tag: krb5-1.0-beta4~147 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=295eaed003385e942bed10a1c93e941d1053f318;p=krb5.git Don't bomb out if the secondary port cannot be initialized git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@3706 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/kdc/network.c b/src/kdc/network.c index 50a265697..68f387931 100644 --- a/src/kdc/network.c +++ b/src/kdc/network.c @@ -106,16 +106,14 @@ const char *prog; /* find it */ } if ((sec_udp_port_fd = socket(PF_INET, SOCK_DGRAM, 0)) == -1) { - retval = errno; - com_err(prog, 0, "Cannot create secondary server socket"); - return retval; + com_err(prog, errno, "while trying to create secondary server socket"); + return 0; /* Don't give an error we we can't do this */ } memset((char *)&sin, 0, sizeof(sin)); sin.sin_port = sp->s_port; if (bind(sec_udp_port_fd, (struct sockaddr *)&sin, sizeof(sin)) == -1) { - retval = errno; - com_err(prog, 0, "Cannot bind secondary server socket"); - return retval; + com_err(prog, errno, "while trying to bind secondary server socket"); + return 0; /* Don't give an error if we can't do this */ } FD_SET(sec_udp_port_fd, &select_fds); if (sec_udp_port_fd+1 > select_nfsd)