commit a882bcf1635612a5d65d7a2fd402acd0bf9355ff
parent 8af83dc4c3bdef6f09ec9ae0c9b2949f48ebdf80
Author: Christian Grothoff <christian@grothoff.org>
Date: Tue, 30 Jan 2018 12:50:45 +0100
fix datastore bind issue
Diffstat:
1 file changed, 4 insertions(+), 0 deletions(-)
diff --git a/src/datastore/plugin_datastore_sqlite.c b/src/datastore/plugin_datastore_sqlite.c
@@ -908,6 +908,10 @@ sqlite_plugin_get_key (void *cls,
GNUNET_SQ_query_param_end
};
+ if (! use_type)
+ memset (¶ms[3], 0, sizeof (struct GNUNET_SQ_QueryParam));
+ if (! use_key)
+ memset (¶ms[2], 0, sizeof (struct GNUNET_SQ_QueryParam));
if (random)
{
rvalue = GNUNET_CRYPTO_random_u64 (GNUNET_CRYPTO_QUALITY_WEAK,