diff options
-rw-r--r-- | src/datastore/plugin_datastore_sqlite.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/datastore/plugin_datastore_sqlite.c b/src/datastore/plugin_datastore_sqlite.c index 01f6b9188..e77e8b9fa 100644 --- a/src/datastore/plugin_datastore_sqlite.c +++ b/src/datastore/plugin_datastore_sqlite.c | |||
@@ -1082,9 +1082,11 @@ sqlite_plugin_get_keys (void *cls, | |||
1082 | } | 1082 | } |
1083 | while (SQLITE_ROW == (ret = sqlite3_step (stmt))) | 1083 | while (SQLITE_ROW == (ret = sqlite3_step (stmt))) |
1084 | { | 1084 | { |
1085 | key = sqlite3_column_blob (stmt, 1); | 1085 | key = sqlite3_column_blob (stmt, 0); |
1086 | if (sizeof (struct GNUNET_HashCode) == sqlite3_column_bytes (stmt, 1)) | 1086 | if (sizeof (struct GNUNET_HashCode) == sqlite3_column_bytes (stmt, 0)) |
1087 | proc (proc_cls, key, 1); | 1087 | proc (proc_cls, key, 1); |
1088 | else | ||
1089 | GNUNET_break (0); | ||
1088 | } | 1090 | } |
1089 | if (SQLITE_DONE != ret) | 1091 | if (SQLITE_DONE != ret) |
1090 | LOG_SQLITE (plugin, NULL, GNUNET_ERROR_TYPE_ERROR, "sqlite_step"); | 1092 | LOG_SQLITE (plugin, NULL, GNUNET_ERROR_TYPE_ERROR, "sqlite_step"); |