diff options
Diffstat (limited to 'protocols/Tox/libtox')
-rw-r--r-- | protocols/Tox/libtox/src/toxcore/net_crypto.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/protocols/Tox/libtox/src/toxcore/net_crypto.c b/protocols/Tox/libtox/src/toxcore/net_crypto.c index 3ace3beaea..b53146137c 100644 --- a/protocols/Tox/libtox/src/toxcore/net_crypto.c +++ b/protocols/Tox/libtox/src/toxcore/net_crypto.c @@ -3036,6 +3036,9 @@ uint32_t crypto_run_interval(const Net_Crypto *c) /* Main loop. */ void do_net_crypto(Net_Crypto *c, void *userdata) { + if (c == nullptr) // !!!!!!!!!!!!!!!!! + return; + kill_timedout(c, userdata); do_tcp(c, userdata); send_crypto_packets(c); |