From 169f1c8c1db0a6d8cebf308ced1de064eadcdc4d Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sun, 25 Jun 2017 17:05:09 +0200 Subject: allow NULL fields for varsize --- src/psycstore/plugin_psycstore_postgres.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'src/psycstore/plugin_psycstore_postgres.c') 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[] = { -- cgit v1.2.3-70-g09d2