diff options
author | V V <vvaltman@aurum> | 2015-12-02 19:47:39 +0300 |
---|---|---|
committer | V V <vvaltman@aurum> | 2015-12-02 19:47:39 +0300 |
commit | 0595b9ddd64807b6f11b1737e964c7767c39812e (patch) | |
tree | 57d16134b959cc167b0a8e17e9cfd7515751971f /updates.c | |
parent | 43452b40c2158163feb8eeadd39466a45a3e78a6 (diff) |
allow gt,lt,amp tags. Fixed crash if run under bot
Diffstat (limited to 'updates.c')
-rw-r--r-- | updates.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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); |