diff options
author | Christian Grothoff <christian@grothoff.org> | 2017-06-25 17:05:09 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2017-06-25 17:05:22 +0200 |
commit | 169f1c8c1db0a6d8cebf308ced1de064eadcdc4d (patch) | |
tree | 27b86aa84b65360df50a91c5ada878f590700a7d /src/psycstore/plugin_psycstore_postgres.c | |
parent | 2c6b87e1974c502a2fc074050c41daa4674dbdc0 (diff) |
allow NULL fields for varsize
Diffstat (limited to 'src/psycstore/plugin_psycstore_postgres.c')
-rw-r--r-- | src/psycstore/plugin_psycstore_postgres.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/psycstore/plugin_psycstore_postgres.c b/src/psycstore/plugin_psycstore_postgres.c index 5bf0ba7062..046daf6ead 100644 --- a/src/psycstore/plugin_psycstore_postgres.c +++ b/src/psycstore/plugin_psycstore_postgres.c @@ -514,16 +514,18 @@ postgres_membership_store (void *cls, GNUNET_assert (TRANSACTION_NONE == plugin->transaction); - if (announced_at > INT64_MAX || - effective_since > INT64_MAX || - group_generation > INT64_MAX) + if ( (announced_at > INT64_MAX) || + (effective_since > INT64_MAX) || + (group_generation > INT64_MAX) ) { GNUNET_break (0); return GNUNET_SYSERR; } - if (GNUNET_OK != channel_key_store (plugin, channel_key) - || GNUNET_OK != slave_key_store (plugin, slave_key)) + if ( (GNUNET_OK != + channel_key_store (plugin, channel_key)) || + (GNUNET_OK != + slave_key_store (plugin, slave_key)) ) return GNUNET_SYSERR; struct GNUNET_PQ_QueryParam params[] = { |