diff options
author | Florian Dold <florian.dold@gmail.com> | 2020-07-21 12:42:05 +0530 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2020-07-21 12:42:05 +0530 |
commit | f4e0ec373360c7cfc04f59143eda64717f4f12cb (patch) | |
tree | 5b1bd9d4fd6cc80d45a8aae3ce7c0660526fc734 /src/backenddb | |
parent | 95471d8638e56bada29e6611ed3de5aa5926f03b (diff) | |
download | merchant-f4e0ec373360c7cfc04f59143eda64717f4f12cb.tar.gz merchant-f4e0ec373360c7cfc04f59143eda64717f4f12cb.tar.bz2 merchant-f4e0ec373360c7cfc04f59143eda64717f4f12cb.zip |
use empty string as default for session ID
Diffstat (limited to 'src/backenddb')
-rw-r--r-- | src/backenddb/plugin_merchantdb_postgres.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/backenddb/plugin_merchantdb_postgres.c b/src/backenddb/plugin_merchantdb_postgres.c index 6e7b9554..06c2a170 100644 --- a/src/backenddb/plugin_merchantdb_postgres.c +++ b/src/backenddb/plugin_merchantdb_postgres.c @@ -2028,7 +2028,7 @@ postgres_lookup_refunds (void *cls, * @param cls closure * @param instance_id instance to mark contract as paid for * @param h_contract_terms hash of the contract that is now paid - * @param session_id the session that paid the contract, can be NULL + * @param session_id the session that paid the contract * @return transaction status */ static enum GNUNET_DB_QueryStatus @@ -2051,6 +2051,9 @@ postgres_mark_contract_paid (void *cls, }; enum GNUNET_DB_QueryStatus qs; + /* Session ID must always be given by the caller. */ + GNUNET_assert (NULL != session_id); + /* no preflight check here, run in transaction by caller! */ GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Marking h_contract_terms '%s' of %s as paid for session `%s'\n", |