aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRomain Forlot <romain.forlot@iot.bzh>2017-03-24 18:17:58 +0100
committerRomain Forlot <romain.forlot@iot.bzh>2017-04-11 12:41:41 +0200
commit5ecd8c0e9dcc58a04cfed2de2493ad973057b09b (patch)
tree96067241b76f561705131e99f8e6d1b7da5fee4d /src
parent77e8749ee3722fd6610094d5750ac26c28c5ad29 (diff)
Fix: wrong pointer validity check...
Change-Id: Ia47159fb18797681fb1dd132be5173e167d8850b Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'src')
-rw-r--r--src/diagnostic/diagnostic-manager.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/diagnostic/diagnostic-manager.cpp b/src/diagnostic/diagnostic-manager.cpp
index 6ab34577..6fd9c2c6 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);
}