mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-09-01 15:05:23 +00:00
2237. [bug] libbind: res_init() was not thread aware. [RT #17123]
This commit is contained in:
2
CHANGES
2
CHANGES
@@ -1,3 +1,5 @@
|
|||||||
|
2237. [bug] libbind: res_init() was not thread aware. [RT #17123]
|
||||||
|
|
||||||
2236. [bug] dnssec-signzone failed to preserve the case of
|
2236. [bug] dnssec-signzone failed to preserve the case of
|
||||||
of wildcard owner names. [RT #17085]
|
of wildcard owner names. [RT #17085]
|
||||||
|
|
||||||
|
@@ -16,7 +16,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#if defined(LIBC_SCCS) && !defined(lint)
|
#if defined(LIBC_SCCS) && !defined(lint)
|
||||||
static const char rcsid[] = "$Id: res_data.c,v 1.4 2005/04/27 04:56:41 sra Exp $";
|
static const char rcsid[] = "$Id: res_data.c,v 1.5 2007/09/14 05:32:25 marka Exp $";
|
||||||
#endif /* LIBC_SCCS and not lint */
|
#endif /* LIBC_SCCS and not lint */
|
||||||
|
|
||||||
#include "port_before.h"
|
#include "port_before.h"
|
||||||
@@ -40,7 +40,6 @@ static const char rcsid[] = "$Id: res_data.c,v 1.4 2005/04/27 04:56:41 sra Exp $
|
|||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
|
||||||
#include "port_after.h"
|
#include "port_after.h"
|
||||||
#undef _res
|
|
||||||
|
|
||||||
const char *_res_opcodes[] = {
|
const char *_res_opcodes[] = {
|
||||||
"QUERY",
|
"QUERY",
|
||||||
@@ -70,6 +69,7 @@ const char *_res_sectioncodes[] = {
|
|||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#undef _res
|
||||||
#ifndef __BIND_NOSTATIC
|
#ifndef __BIND_NOSTATIC
|
||||||
struct __res_state _res
|
struct __res_state _res
|
||||||
# if defined(__BIND_RES_TEXT)
|
# if defined(__BIND_RES_TEXT)
|
||||||
@@ -77,6 +77,10 @@ struct __res_state _res
|
|||||||
# endif
|
# endif
|
||||||
;
|
;
|
||||||
|
|
||||||
|
#if defined(DO_PTHREADS) || defined(__linux)
|
||||||
|
#define _res (*__res_state())
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Proto. */
|
/* Proto. */
|
||||||
|
|
||||||
int res_ourserver_p(const res_state, const struct sockaddr_in *);
|
int res_ourserver_p(const res_state, const struct sockaddr_in *);
|
||||||
|
Reference in New Issue
Block a user