src/keymanagement.c
branchsync
changeset 3609 548e7dd045e5
parent 3586 60a1999238bb
child 3610 97033a138011
     1.1 --- a/src/keymanagement.c	Thu May 02 13:32:32 2019 +0200
     1.2 +++ b/src/keymanagement.c	Fri May 03 10:40:31 2019 +0200
     1.3 @@ -1762,18 +1762,11 @@
     1.4          result = sqlite3_step(session->own_keys_retrieve);
     1.5          switch (result) {
     1.6              case SQLITE_ROW:
     1.7 -                fpr = strdup((const char *) sqlite3_column_text(session->own_keys_retrieve, 0));
     1.8 -                if(fpr == NULL)
     1.9 +                _bl = stringlist_add(_bl, (const char *) sqlite3_column_text(session->own_keys_retrieve, 0));
    1.10 +                if (_bl == NULL)
    1.11                      goto enomem;
    1.12 -
    1.13 -                _bl = stringlist_add(_bl, fpr);
    1.14 -                if (_bl == NULL) {
    1.15 -                    free(fpr);
    1.16 -                    goto enomem;
    1.17 -                }
    1.18                  if (_keylist == NULL)
    1.19                      _keylist = _bl;
    1.20 -                
    1.21                  break;
    1.22                  
    1.23              case SQLITE_DONE: