Browse Source

Fixed sql bind in loop problem that has been languishing in hiding.

pEpMIME_windows
parent
commit
685bcbe69d
2 changed files with 7 additions and 5 deletions
  1. +6
    -3
      src/keymanagement.c
  2. +1
    -2
      src/pEpEngine.c

+ 6
- 3
src/keymanagement.c View File

@ -1656,8 +1656,10 @@ PEP_STATUS _own_identities_retrieve(
unsigned int flags = 0;
identity_list *_bl = _own_identities;
sqlite3_bind_int(session->own_keys_retrieve, 1, excluded_flags);
do {
sqlite3_bind_int(session->own_identities_retrieve, 1, excluded_flags);
result = sqlite3_step(session->own_identities_retrieve);
switch (result) {
case SQLITE_ROW:
@ -1749,8 +1751,9 @@ PEP_STATUS _own_keys_retrieve(
char *fpr = NULL;
stringlist_t *_bl = _keylist;
do {
sqlite3_bind_int(session->own_keys_retrieve, 1, excluded_flags);
sqlite3_bind_int(session->own_keys_retrieve, 1, excluded_flags);
do {
result = sqlite3_step(session->own_keys_retrieve);
switch (result) {
case SQLITE_ROW:


+ 1
- 2
src/pEpEngine.c View File

@ -11,7 +11,7 @@
#include <time.h>
#include <stdlib.h>
#define _PEP_SQLITE_DEBUG 0
#define _PEP_SQLITE_DEBUG 1
#if _PEP_SQLITE_DEBUG
#include <sqlite3.h>
#endif
@ -4901,4 +4901,3 @@ DYNAMIC_API void clear_errorstack(PEP_SESSION session)
}
#endif

Loading…
Cancel
Save