Browse Source

fixing some string alloc problems

pEpMIME_windows
Volker Birk 3 years ago
parent
commit
a93f8833e5
2 changed files with 3 additions and 9 deletions
  1. +2
    -9
      src/keymanagement.c
  2. +1
    -0
      sync/cond_act_sync.yml2

+ 2
- 9
src/keymanagement.c View File

@ -1762,18 +1762,11 @@ PEP_STATUS _own_keys_retrieve(
result = sqlite3_step(session->own_keys_retrieve);
switch (result) {
case SQLITE_ROW:
fpr = strdup((const char *) sqlite3_column_text(session->own_keys_retrieve, 0));
if(fpr == NULL)
_bl = stringlist_add(_bl, (const char *) sqlite3_column_text(session->own_keys_retrieve, 0));
if (_bl == NULL)
goto enomem;
_bl = stringlist_add(_bl, fpr);
if (_bl == NULL) {
free(fpr);
goto enomem;
}
if (_keylist == NULL)
_keylist = _bl;
break;
case SQLITE_DONE:


+ 1
- 0
sync/cond_act_sync.yml2 View File

@ -324,6 +324,7 @@ action prepareOwnKeys
return status;
IdentityList_from_identity_list(il, &session->sync_state.keysync.ownIdentities);
free_identity_list(il);
||
action saveGroupKeys


Loading…
Cancel
Save