From aa68c2c6aeb30aa317250d571a20ec1ebd202e87 Mon Sep 17 00:00:00 2001 From: vysheng Date: Fri, 21 Mar 2014 01:03:23 +0400 Subject: [PATCH] Fixed sentCode parse in 12 layer --- constants.h | 2 +- queries.c | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/constants.h b/constants.h index 54d7372..bfc295b 100644 --- a/constants.h +++ b/constants.h @@ -117,7 +117,7 @@ #define CODE_geo_point_empty 0x1117dd5f #define CODE_geo_point 0x2049d70c #define CODE_auth_checked_phone 0xe300cc3b -#define CODE_auth_sent_code 0x2215bcbd +#define CODE_auth_sent_code 0xefed51d9 #define CODE_auth_authorization 0xf6b673a4 #define CODE_auth_exported_authorization 0xdf969c2d #define CODE_input_notify_peer 0xb8bc5b0c diff --git a/queries.c b/queries.c index e7ad64e..6db08db 100644 --- a/queries.c +++ b/queries.c @@ -384,7 +384,9 @@ void do_help_get_config (void) { /* {{{ Send code */ char *phone_code_hash; int send_code_on_answer (struct query *q UU) { - assert (fetch_int () == CODE_auth_sent_code); + assert (fetch_int () == (int)CODE_auth_sent_code); + fetch_bool (); + fetch_int (); fetch_bool (); int l = prefetch_strlen (); char *s = fetch_str (l);