diff options
author | Christian Grothoff <christian@grothoff.org> | 2018-01-30 12:50:45 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2018-01-30 12:50:55 +0100 |
commit | a882bcf1635612a5d65d7a2fd402acd0bf9355ff (patch) | |
tree | cddd7a493cb60cc5e5c6177e005fd431c9200a4a /src/datastore | |
parent | 8af83dc4c3bdef6f09ec9ae0c9b2949f48ebdf80 (diff) | |
download | gnunet-a882bcf1635612a5d65d7a2fd402acd0bf9355ff.tar.gz gnunet-a882bcf1635612a5d65d7a2fd402acd0bf9355ff.zip |
fix datastore bind issue
Diffstat (limited to 'src/datastore')
-rw-r--r-- | src/datastore/plugin_datastore_sqlite.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/datastore/plugin_datastore_sqlite.c b/src/datastore/plugin_datastore_sqlite.c index d51fd3e01..380238bb5 100644 --- a/src/datastore/plugin_datastore_sqlite.c +++ b/src/datastore/plugin_datastore_sqlite.c | |||
@@ -908,6 +908,10 @@ sqlite_plugin_get_key (void *cls, | |||
908 | GNUNET_SQ_query_param_end | 908 | GNUNET_SQ_query_param_end |
909 | }; | 909 | }; |
910 | 910 | ||
911 | if (! use_type) | ||
912 | memset (¶ms[3], 0, sizeof (struct GNUNET_SQ_QueryParam)); | ||
913 | if (! use_key) | ||
914 | memset (¶ms[2], 0, sizeof (struct GNUNET_SQ_QueryParam)); | ||
911 | if (random) | 915 | if (random) |
912 | { | 916 | { |
913 | rvalue = GNUNET_CRYPTO_random_u64 (GNUNET_CRYPTO_QUALITY_WEAK, | 917 | rvalue = GNUNET_CRYPTO_random_u64 (GNUNET_CRYPTO_QUALITY_WEAK, |