Michał Kępień
47c206f386
Silence cppcheck 2.2 false positive in udp_recv()
...
cppcheck 2.2 reports the following false positive:
lib/dns/dispatch.c:1220: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:1191:11: note: Assuming that condition 'resp==NULL' is not redundant
if (resp == NULL) {
^
lib/dns/dispatch.c:1220:14: note: Null pointer dereference
if (disp != resp->disp) {
^
Apparently this version of cppcheck gets confused about conditional
"goto" statements because line 1220 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:42:12 +01:00
..
2020-09-30 13:33:43 +02:00
2020-09-14 17:00:40 -07:00
2020-10-01 23:05:10 +10:00
2020-09-30 13:33:43 +02:00
2016-06-24 09:37:04 +10:00
2020-09-14 17:00:40 -07:00
2020-09-14 17:00:40 -07:00
2020-09-14 17:00:40 -07:00
2020-10-22 09:22:48 +02:00
2020-09-14 17:00:40 -07:00
2020-09-14 17:00:40 -07:00
2020-09-14 17:00:40 -07:00
2020-09-14 17:00:40 -07:00
2020-09-14 17:00:40 -07:00
2020-09-30 13:33:43 +02:00
2020-09-14 17:00:40 -07:00
2020-09-14 17:00:40 -07:00
2020-09-14 17:00:40 -07:00
2020-09-14 17:00:40 -07:00
2020-09-14 17:00:40 -07:00
2020-09-14 17:00:40 -07:00
2020-11-25 13:42:12 +01:00
2020-09-14 17:00:40 -07:00
2020-09-14 17:00:40 -07:00
2020-09-14 17:00:40 -07:00
2020-09-30 13:33:43 +02:00
2020-02-21 14:09:59 -08:00
2020-09-14 17:00:40 -07:00
2020-09-14 17:00:40 -07:00
2020-09-14 17:00:40 -07:00
2020-09-14 17:00:40 -07:00
2020-09-14 17:00:40 -07:00
2020-09-14 17:00:40 -07:00
2020-09-14 17:00:40 -07:00
2020-09-14 17:00:40 -07:00
2020-09-14 17:00:40 -07:00
2020-09-14 17:00:40 -07:00
2020-09-14 17:00:40 -07:00
2020-09-14 17:00:40 -07:00
2020-09-14 17:00:40 -07:00
2020-09-14 17:00:40 -07:00
2020-09-14 17:00:40 -07:00
2020-09-14 17:00:40 -07:00
2020-09-14 17:00:40 -07:00
2020-09-14 17:00:40 -07:00
2020-09-14 17:00:40 -07:00
2020-09-14 17:00:40 -07:00
2020-09-14 17:00:40 -07:00
2020-09-14 17:00:40 -07:00
2020-09-14 17:00:40 -07:00
2020-09-14 17:00:40 -07:00
2020-09-14 17:00:40 -07:00
2020-09-14 17:00:40 -07:00
2020-09-14 17:00:40 -07:00
2020-09-14 17:00:40 -07:00
2017-12-29 02:23:11 +00:00
2020-09-14 17:00:40 -07:00
2020-09-14 17:00:40 -07:00
2020-09-14 17:00:40 -07:00
2020-10-28 11:00:34 +01:00
2020-09-14 17:00:40 -07:00
2020-09-14 17:00:40 -07:00
2020-09-30 13:33:43 +02:00
2020-09-14 17:00:40 -07:00
2020-09-14 17:00:40 -07:00
2020-09-14 17:00:40 -07:00
2020-09-14 17:00:40 -07:00
2020-11-03 23:50:19 +11:00
2020-09-14 17:00:40 -07:00
2020-09-14 17:00:40 -07:00
2020-09-14 17:00:40 -07:00
2020-09-14 17:00:40 -07:00
2020-09-14 17:00:40 -07:00
2020-09-14 17:00:40 -07:00
2020-09-14 17:00:40 -07:00
2020-09-14 17:00:40 -07:00
2020-09-14 17:00:40 -07:00
2020-09-14 17:00:40 -07:00
2020-09-14 17:00:40 -07:00
2020-09-14 17:00:40 -07:00
2020-09-14 17:00:40 -07:00
2020-09-14 17:00:40 -07:00
2020-09-14 17:00:40 -07:00
2020-09-14 17:00:40 -07:00
2020-09-14 17:00:40 -07:00
2020-09-14 17:00:40 -07:00
2020-09-14 17:00:40 -07:00
2020-09-14 17:00:40 -07:00
2020-09-14 17:00:40 -07:00
2020-11-11 08:25:55 +11:00
2020-09-14 17:00:40 -07:00
2020-09-14 17:00:40 -07:00
2020-09-14 17:00:40 -07:00
2020-09-14 17:00:40 -07:00
2020-09-14 17:00:40 -07:00
2020-09-14 17:00:40 -07:00
2020-09-14 17:00:40 -07:00
2020-09-14 17:00:40 -07:00
2020-09-14 17:00:40 -07:00
2020-10-08 13:10:31 +11:00
2020-09-14 17:00:40 -07:00
2020-09-14 17:00:40 -07:00
2020-09-14 17:00:40 -07:00
2020-09-14 17:00:40 -07:00
2020-09-14 17:00:40 -07:00
2020-09-14 17:00:40 -07:00
2020-09-14 17:00:40 -07:00
2020-09-14 17:00:40 -07:00
2020-09-14 17:00:40 -07:00
2020-09-14 17:00:40 -07:00
2018-05-11 14:25:15 +02:00
2020-09-14 17:00:40 -07:00
2020-09-14 17:00:40 -07:00
2020-09-14 17:00:40 -07:00
2020-09-14 17:00:40 -07:00
2020-09-14 17:00:40 -07:00
2020-09-14 17:00:40 -07:00
2020-09-14 17:00:40 -07:00
2020-09-14 17:00:40 -07:00
2020-09-14 17:00:40 -07:00
2020-09-14 17:00:40 -07:00
2020-09-14 17:00:40 -07:00
2020-09-14 17:00:40 -07:00
2020-09-14 17:00:40 -07:00
2020-10-30 08:25:03 +11:00
2020-09-14 17:00:40 -07:00
2020-09-23 00:42:26 +00:00
2020-09-30 13:33:43 +02:00
2020-09-14 17:00:40 -07:00
2020-11-10 17:16:43 +11:00
2020-09-14 17:00:40 -07:00
2020-09-14 17:00:40 -07:00