From afab28f0ff0bd71efcf39bd633770053da99e04a Mon Sep 17 00:00:00 2001 From: "zugz (tox)" Date: Wed, 8 Aug 2018 23:13:06 +0200 Subject: [PATCH] Fix typo in loop over assocs. --- toxcore/Messenger.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/toxcore/Messenger.c b/toxcore/Messenger.c index a52c07f0..acf9f806 100644 --- a/toxcore/Messenger.c +++ b/toxcore/Messenger.c @@ -2626,7 +2626,7 @@ void do_messenger(Messenger *m, void *userdata) for (client = 0; client < LCLIENT_LIST; ++client) { const Client_data *cptr = dht_get_close_client(m->dht, client); - const IPPTsPng *const assocs[] = { &cptr->assoc4, &cptr->assoc4, nullptr }; + const IPPTsPng *const assocs[] = { &cptr->assoc4, &cptr->assoc6, nullptr }; for (const IPPTsPng * const *it = assocs; *it; ++it) { const IPPTsPng *const assoc = *it;