diff options
author | delphij <delphij@FreeBSD.org> | 2016-12-22 16:19:05 +0000 |
---|---|---|
committer | delphij <delphij@FreeBSD.org> | 2016-12-22 16:19:05 +0000 |
commit | a5b8a0cee842e12aa090449e042788b9eabc35da (patch) | |
tree | c763313cbeed3fb4c2eaab81925e4718bb6d5a62 /contrib/ntp/include/ntp_intres.h | |
parent | 897834470fcc320aaf75dc150ec701ce17c3491a (diff) | |
download | FreeBSD-src-a5b8a0cee842e12aa090449e042788b9eabc35da.zip FreeBSD-src-a5b8a0cee842e12aa090449e042788b9eabc35da.tar.gz |
Fix multiple vulnerabilities of ntp.releng/10.1
Approved by: so
Diffstat (limited to 'contrib/ntp/include/ntp_intres.h')
-rw-r--r-- | contrib/ntp/include/ntp_intres.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/contrib/ntp/include/ntp_intres.h b/contrib/ntp/include/ntp_intres.h index 1b6bd66..1109130 100644 --- a/contrib/ntp/include/ntp_intres.h +++ b/contrib/ntp/include/ntp_intres.h @@ -9,6 +9,9 @@ #ifdef WORKER #define INITIAL_DNS_RETRY 2 /* seconds between queries */ +/* flags for extended addrinfo version */ +#define GAIR_F_IGNDNSERR 0x0001 /* ignore DNS errors */ + /* * you call getaddrinfo_sometime(name, service, &hints, retry, callback_func, context); * later (*callback_func)(rescode, gai_errno, context, name, service, hints, ai_result) is called. @@ -19,6 +22,9 @@ typedef void (*gai_sometime_callback) extern int getaddrinfo_sometime(const char *, const char *, const struct addrinfo *, int, gai_sometime_callback, void *); +extern int getaddrinfo_sometime_ex(const char *, const char *, + const struct addrinfo *, int, + gai_sometime_callback, void *, u_int); /* * In gai_sometime_callback routines, the resulting addrinfo list is * only available until the callback returns. To hold on to the list |