mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-11 14:19:59 -04:00
Remove unnecessary NULL pointer check
3034 next = ISC_LIST_NEXT(query, link);
3035 } else {
3036 next = NULL;
3037 }
CID 352554 (#1 of 1): Dereference before null check (REVERSE_INULL)
check_after_deref: Null-checking connectquery suggests that it may be null, but it has already been dereferenced on all paths leading to the check.
3038 if (connectquery != NULL) {
3039 query_detach(&connectquery);
3040 }
This commit is contained in:
parent
2f488546d5
commit
30f3d51368
1 changed files with 1 additions and 3 deletions
|
|
@ -3035,9 +3035,7 @@ failure_tls:
|
|||
} else {
|
||||
next = NULL;
|
||||
}
|
||||
if (connectquery != NULL) {
|
||||
query_detach(&connectquery);
|
||||
}
|
||||
query_detach(&connectquery);
|
||||
query_detach(&query);
|
||||
if (next == NULL) {
|
||||
clear_current_lookup();
|
||||
|
|
|
|||
Loading…
Reference in a new issue