mirror of
https://github.com/osmarks/ngircd.git
synced 2025-10-20 17:17:37 +00:00
don't call Resolve_Shutdown() when io_event_create fails [from HEAD]
This commit is contained in:
@@ -14,7 +14,7 @@
|
|||||||
|
|
||||||
#include "portab.h"
|
#include "portab.h"
|
||||||
|
|
||||||
static char UNUSED id[] = "$Id: resolve.c,v 1.24.2.1 2006/12/02 13:00:25 fw Exp $";
|
static char UNUSED id[] = "$Id: resolve.c,v 1.24.2.2 2006/12/17 22:59:56 fw Exp $";
|
||||||
|
|
||||||
#include "imp.h"
|
#include "imp.h"
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
@@ -313,7 +313,8 @@ register_callback( RES_STAT *s, void (*cbfunc)(int, short))
|
|||||||
return true;
|
return true;
|
||||||
|
|
||||||
Log( LOG_CRIT, "Resolver: Could not register callback function: %s!", strerror(errno));
|
Log( LOG_CRIT, "Resolver: Could not register callback function: %s!", strerror(errno));
|
||||||
Resolve_Shutdown(s);
|
close(s->resolver_fd);
|
||||||
|
Resolve_Init(s);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user