src/pEpEngine.c
branchkeysync
changeset 946 d50f4f731ec9
parent 945 4474a1ae092e
child 948 2c689b7707a9
     1.1 --- a/src/pEpEngine.c	Sun Jul 31 00:17:08 2016 +0200
     1.2 +++ b/src/pEpEngine.c	Sun Jul 31 00:22:18 2016 +0200
     1.3 @@ -309,9 +309,9 @@
     1.4  
     1.5          sql_set_identity = "insert or replace into identity (address, main_key_id, "
     1.6                             "user_id, flags) values (?1, upper(replace(?2,' ','')),"
     1.7 -                           "?3, ?4) ;";
     1.8 +                           "?3, ?4 & 255) ;";
     1.9  
    1.10 -        sql_set_identity_flags = "update identity set flags = ?1 "
    1.11 +        sql_set_identity_flags = "update identity set flags = ?1 & 255 "
    1.12                                   "where address = ?2 and user_id = ?3 ;";
    1.13  
    1.14          sql_set_trust = "insert or replace into trust (user_id, pgp_keypair_fpr, comm_type) "