Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/majn/tgl.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormjentsch <mtthsjntsch@gmail.com>2016-01-09 19:29:01 +0300
committermjentsch <mtthsjntsch@gmail.com>2016-01-09 20:32:52 +0300
commite03d95bbdfecaec0aaca7dec60644ed9d8aeff08 (patch)
tree854355a533420430f6995b89ea8b773fe46caf77
parent8e6224ed463b7db5ba4803a4c13797ecffae6104 (diff)
Cherry pick fix for crash on some channel messagestest
-rw-r--r--updates.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/updates.c b/updates.c
index 3b0f71d..b3bdb95 100644
--- a/updates.c
+++ b/updates.c
@@ -160,6 +160,9 @@ void tglu_work_update (struct tgl_state *TLS, int check_only, struct tl_ds_updat
channel_id = DS_LVAL (DS_U->channel_id);
} else {
assert (DS_U->message);
+ if (!DS_U->message->to_id) {
+ return;
+ }
assert (DS_U->message->to_id);
assert (DS_U->message->to_id->magic == CODE_peer_channel);
channel_id = DS_LVAL (DS_U->message->to_id->channel_id);