aboutsummaryrefslogtreecommitdiff
path: root/src/psycstore
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2017-06-25 17:05:09 +0200
committerChristian Grothoff <christian@grothoff.org>2017-06-25 17:05:22 +0200
commit169f1c8c1db0a6d8cebf308ced1de064eadcdc4d (patch)
tree27b86aa84b65360df50a91c5ada878f590700a7d /src/psycstore
parent2c6b87e1974c502a2fc074050c41daa4674dbdc0 (diff)
downloadgnunet-169f1c8c1db0a6d8cebf308ced1de064eadcdc4d.tar.gz
gnunet-169f1c8c1db0a6d8cebf308ced1de064eadcdc4d.zip
allow NULL fields for varsize
Diffstat (limited to 'src/psycstore')
-rw-r--r--src/psycstore/plugin_psycstore_postgres.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/psycstore/plugin_psycstore_postgres.c b/src/psycstore/plugin_psycstore_postgres.c
index 5bf0ba706..046daf6ea 100644
--- a/src/psycstore/plugin_psycstore_postgres.c
+++ b/src/psycstore/plugin_psycstore_postgres.c
@@ -514,16 +514,18 @@ postgres_membership_store (void *cls,
514 514
515 GNUNET_assert (TRANSACTION_NONE == plugin->transaction); 515 GNUNET_assert (TRANSACTION_NONE == plugin->transaction);
516 516
517 if (announced_at > INT64_MAX || 517 if ( (announced_at > INT64_MAX) ||
518 effective_since > INT64_MAX || 518 (effective_since > INT64_MAX) ||
519 group_generation > INT64_MAX) 519 (group_generation > INT64_MAX) )
520 { 520 {
521 GNUNET_break (0); 521 GNUNET_break (0);
522 return GNUNET_SYSERR; 522 return GNUNET_SYSERR;
523 } 523 }
524 524
525 if (GNUNET_OK != channel_key_store (plugin, channel_key) 525 if ( (GNUNET_OK !=
526 || GNUNET_OK != slave_key_store (plugin, slave_key)) 526 channel_key_store (plugin, channel_key)) ||
527 (GNUNET_OK !=
528 slave_key_store (plugin, slave_key)) )
527 return GNUNET_SYSERR; 529 return GNUNET_SYSERR;
528 530
529 struct GNUNET_PQ_QueryParam params[] = { 531 struct GNUNET_PQ_QueryParam params[] = {