Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ISC Open Source Projects
BIND
Commits
fa22351a
Commit
fa22351a
authored
Jan 15, 2018
by
Mark Andrews
Browse files
silence coverity false positive. [RT #46841]
parent
6d1f45ed
Changes
3
Hide whitespace changes
Inline
Side-by-side
lib/ns/hooks.h
View file @
fa22351a
...
...
@@ -157,7 +157,7 @@ enum {
NS_QUERY_SETUP_QCTX_INITIALIZED
,
NS_QUERY_LOOKUP_BEGIN
,
NS_QUERY_DONE_BEGIN
,
NS_QUERY_HOOKS_COUNT
NS_QUERY_HOOKS_COUNT
/* MUST BE LAST */
};
typedef
isc_boolean_t
...
...
lib/ns/tests/nstest.c
View file @
fa22351a
...
...
@@ -680,7 +680,7 @@ extract_qctx(void *hook_data, void *callback_data, isc_result_t *resultp) {
static
isc_result_t
create_qctx_for_client
(
ns_client_t
*
client
,
query_ctx_t
**
qctxp
)
{
ns_hook_t
*
saved_hook_table
;
ns_hook_t
query_hooks
[
NS_QUERY_HOOKS_COUNT
]
=
{
ns_hook_t
query_hooks
[
NS_QUERY_HOOKS_COUNT
+
1
]
=
{
[
NS_QUERY_SETUP_QCTX_INITIALIZED
]
=
{
.
callback
=
extract_qctx
,
.
callback_data
=
qctxp
,
...
...
lib/ns/tests/query_test.c
View file @
fa22351a
...
...
@@ -57,7 +57,7 @@ ns__query_sfcache_test(const ns__query_sfcache_test_params_t *test) {
/*
* Interrupt execution if query_done() is called.
*/
ns_hook_t
query_hooks
[
NS_QUERY_HOOKS_COUNT
]
=
{
ns_hook_t
query_hooks
[
NS_QUERY_HOOKS_COUNT
+
1
]
=
{
[
NS_QUERY_DONE_BEGIN
]
=
{
.
callback
=
ns_test_hook_catch_call
,
.
callback_data
=
NULL
,
...
...
@@ -264,7 +264,7 @@ ns__query_start_test(const ns__query_start_test_params_t *test) {
/*
* Interrupt execution if query_lookup() or query_done() is called.
*/
ns_hook_t
query_hooks
[
NS_QUERY_HOOKS_COUNT
]
=
{
ns_hook_t
query_hooks
[
NS_QUERY_HOOKS_COUNT
+
1
]
=
{
[
NS_QUERY_LOOKUP_BEGIN
]
=
{
.
callback
=
ns_test_hook_catch_call
,
.
callback_data
=
NULL
,
...
...
Mark Andrews
@marka
mentioned in commit
f4c1681d
·
Jan 26, 2018
mentioned in commit
f4c1681d
mentioned in commit f4c1681dad5bf3b019b71da255fe2c7d89394c86
Toggle commit list
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment