Exit if no sockets could be bound.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3838 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -512,6 +512,8 @@ loop(void)
|
|||||||
struct descr *d;
|
struct descr *d;
|
||||||
int ndescr;
|
int ndescr;
|
||||||
ndescr = init_sockets(&d);
|
ndescr = init_sockets(&d);
|
||||||
|
if(ndescr <= 0)
|
||||||
|
krb5_errx(context, 1, "No sockets!");
|
||||||
while(exit_flag == 0){
|
while(exit_flag == 0){
|
||||||
struct timeval tmout;
|
struct timeval tmout;
|
||||||
struct fd_set fds;
|
struct fd_set fds;
|
||||||
|
Reference in New Issue
Block a user