From: Romain Forlot Date: Fri, 24 Mar 2017 17:17:58 +0000 (+0100) Subject: Fix: wrong pointer validity check... X-Git-Tag: 3.99.1~191 X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=commitdiff_plain;h=5ecd8c0e9dcc58a04cfed2de2493ad973057b09b;p=apps%2Flow-level-can-service.git Fix: wrong pointer validity check... Change-Id: Ia47159fb18797681fb1dd132be5173e167d8850b Signed-off-by: Romain Forlot --- diff --git a/src/diagnostic/diagnostic-manager.cpp b/src/diagnostic/diagnostic-manager.cpp index 6ab3457..6fd9c2c 100644 --- a/src/diagnostic/diagnostic-manager.cpp +++ b/src/diagnostic/diagnostic-manager.cpp @@ -480,7 +480,7 @@ int diagnostic_manager_t::send_request(sd_event_source *s, uint64_t usec, void * adr->set_in_flight(true); } - if(adr->get_recurring()) + if(adr != nullptr && adr->get_recurring()) { return dm.reschedule_request(s, usec, adr); }