src/pEpEngine.c
branchkrista-local-7-Jan-2020
changeset 4315 afece9dedddf
parent 4312 1d1672a6dfb9
child 4334 183a145a507b
     1.1 --- a/src/pEpEngine.c	Wed Jan 08 04:36:12 2020 +0100
     1.2 +++ b/src/pEpEngine.c	Wed Jan 08 13:20:06 2020 +0100
     1.3 @@ -3712,8 +3712,11 @@
     1.4      PEP_STATUS status = PEP_STATUS_OK;
     1.5      
     1.6      sqlite3_reset(session->has_id_contacted_address);
     1.7 -    sqlite3_bind_text(session->has_id_contacted_address, 1, partner_id, -1,
     1.8 +    sqlite3_bind_text(session->has_id_contacted_address, 1, own_address, -1,
     1.9 +            SQLITE_STATIC);            
    1.10 +    sqlite3_bind_text(session->has_id_contacted_address, 2, partner_id, -1,
    1.11              SQLITE_STATIC);
    1.12 +            
    1.13      int result = sqlite3_step(session->has_id_contacted_address);
    1.14      switch (result) {
    1.15          case SQLITE_ROW: {