Don't bomb out if the secondary port cannot be initialized
authorTheodore Tso <tytso@mit.edu>
Fri, 10 Jun 1994 18:49:46 +0000 (18:49 +0000)
committerTheodore Tso <tytso@mit.edu>
Fri, 10 Jun 1994 18:49:46 +0000 (18:49 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@3706 dc483132-0cff-0310-8789-dd5450dbe970

src/kdc/network.c

index 50a265697071558331c464fd485c99a8bcd5232e..68f387931c16934bf29676f1d4c8769bf181fce6 100644 (file)
@@ -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)