Files
bind9/lib/dns
Michał Kępień 3158a2aead Silence cppcheck 2.2 false positive in udp_recv()
cppcheck 2.2 reports the following false positive:

    lib/dns/dispatch.c:1241:14: warning: Either the condition 'resp==NULL' is redundant or there is possible null pointer dereference: resp. [nullPointerRedundantCheck]
     if (disp != resp->disp) {
                 ^
    lib/dns/dispatch.c:1212:11: note: Assuming that condition 'resp==NULL' is not redundant
     if (resp == NULL) {
              ^
    lib/dns/dispatch.c:1241:14: note: Null pointer dereference
     if (disp != resp->disp) {
                 ^

Apparently this version of cppcheck gets confused about conditional
"goto" statements because line 1241 can never be reached if 'resp' is
NULL.

Move a code block to prevent the above false positive from being
reported without affecting the processing logic.

(cherry picked from commit 0b6216d1c7)
2020-11-25 13:21:58 +01:00
..
2020-11-11 15:59:56 -03:00
2020-10-22 09:09:07 +02:00
2020-11-11 15:59:56 -03:00
2020-11-11 15:59:56 -03:00
2020-10-02 10:18:59 +02:00
2020-03-12 00:38:37 -07:00
2020-11-06 12:58:19 +02:00
2020-11-11 15:59:56 -03:00
2020-11-09 21:48:22 +00:00
2020-11-11 15:59:56 -03:00
2020-11-11 15:59:56 -03:00
2020-09-23 01:49:56 +00:00