mirror of
https://gitlab.isc.org/isc-projects/dhcp
synced 2025-08-30 22:05:23 +00:00
Add a cookie identifying the zone that was found during tsig key lookup.
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
#if !defined(lint) && !defined(SABER)
|
#if !defined(lint) && !defined(SABER)
|
||||||
static const char rcsid[] = "$Id: res_findzonecut.c,v 1.4 2000/04/20 01:34:32 mellon Exp $";
|
static const char rcsid[] = "$Id: res_findzonecut.c,v 1.5 2000/05/01 23:45:41 mellon Exp $";
|
||||||
#endif /* not lint */
|
#endif /* not lint */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@@ -135,7 +135,8 @@ static int do_query(res_state, const char *, ns_class, ns_type,
|
|||||||
|
|
||||||
int
|
int
|
||||||
res_findzonecut(res_state statp, const char *dname, ns_class class, int opts,
|
res_findzonecut(res_state statp, const char *dname, ns_class class, int opts,
|
||||||
char *zname, size_t zsize, struct in_addr *addrs, int naddrs)
|
char *zname, size_t zsize, struct in_addr *addrs, int naddrs,
|
||||||
|
void *zcookie)
|
||||||
{
|
{
|
||||||
char mname[NS_MAXDNAME];
|
char mname[NS_MAXDNAME];
|
||||||
u_long save_pfcode;
|
u_long save_pfcode;
|
||||||
@@ -151,7 +152,8 @@ res_findzonecut(res_state statp, const char *dname, ns_class class, int opts,
|
|||||||
ISC_LIST_INIT(nsrrs);
|
ISC_LIST_INIT(nsrrs);
|
||||||
|
|
||||||
DPRINTF (("look for a predefined zone statement"));
|
DPRINTF (("look for a predefined zone statement"));
|
||||||
if ((n = find_cached_zone (dname, class, zname, zsize, addrs, naddrs)))
|
if ((n = find_cached_zone (dname, class, zname, zsize, addrs, naddrs,
|
||||||
|
zcookie)))
|
||||||
goto done;
|
goto done;
|
||||||
|
|
||||||
DPRINTF(("get the soa, and see if it has enough glue"));
|
DPRINTF(("get the soa, and see if it has enough glue"));
|
||||||
|
Reference in New Issue
Block a user