summaryrefslogtreecommitdiff
path: root/toxcore/Messenger.c
diff options
context:
space:
mode:
authoriphydf <iphydf@users.noreply.github.com>2016-09-08 01:15:14 +0100
committeriphydf <iphydf@users.noreply.github.com>2016-09-08 20:21:12 +0100
commit3521898b0cbf398d882496f6382f6c4ea1c23bc1 (patch)
tree9e3b0c89bd094e797ee8a191a75e8bb54d2571fb /toxcore/Messenger.c
parent54de13c1c7b8e22a3668d4325e77611857071c2a (diff)
Fix potential null pointer dereference.
This used to not be an issue, but now that the logger is no longer global, not all source locations may have access to it.
Diffstat (limited to 'toxcore/Messenger.c')
-rw-r--r--toxcore/Messenger.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/toxcore/Messenger.c b/toxcore/Messenger.c
index e892779c..44664e3f 100644
--- a/toxcore/Messenger.c
+++ b/toxcore/Messenger.c
@@ -2506,7 +2506,7 @@ void do_messenger(Messenger *m, void *userdata)
2506 if (unix_time() > lastdump + DUMPING_CLIENTS_FRIENDS_EVERY_N_SECONDS) { 2506 if (unix_time() > lastdump + DUMPING_CLIENTS_FRIENDS_EVERY_N_SECONDS) {
2507 2507
2508#ifdef ENABLE_ASSOC_DHT 2508#ifdef ENABLE_ASSOC_DHT
2509 Assoc_status(m->dht->assoc); 2509 Assoc_status(m->log, m->dht->assoc);
2510#endif 2510#endif
2511 2511
2512 lastdump = unix_time(); 2512 lastdump = unix_time();