fix range check, fix NULL check, fix plugin linkage
This commit is contained in:
parent
37bf816873
commit
044403701d
@ -474,6 +474,9 @@ main (int argc, char *const *argv)
|
|||||||
|
|
||||||
session = TMH_plugin->get_session (TMH_plugin->cls,
|
session = TMH_plugin->get_session (TMH_plugin->cls,
|
||||||
GNUNET_YES);
|
GNUNET_YES);
|
||||||
|
if (NULL == session)
|
||||||
|
GNUNET_break (0);
|
||||||
|
else
|
||||||
TMH_plugin->drop_temporary (TMH_plugin->cls,
|
TMH_plugin->drop_temporary (TMH_plugin->cls,
|
||||||
session);
|
session);
|
||||||
}
|
}
|
||||||
|
@ -613,8 +613,7 @@ TMH_DB_execute_refresh_melt (struct MHD_Connection *connection,
|
|||||||
int res;
|
int res;
|
||||||
unsigned int i;
|
unsigned int i;
|
||||||
|
|
||||||
if (NULL ==
|
if (NULL == (session = TMH_plugin->get_session (TMH_plugin->cls,
|
||||||
(session = TMH_plugin->get_session (TMH_plugin->cls,
|
|
||||||
TMH_test_mode)))
|
TMH_test_mode)))
|
||||||
{
|
{
|
||||||
GNUNET_break (0);
|
GNUNET_break (0);
|
||||||
|
@ -211,7 +211,7 @@ reload_keys_denom_iter (void *cls,
|
|||||||
int res;
|
int res;
|
||||||
|
|
||||||
horizon = GNUNET_TIME_relative_to_absolute (TALER_MINT_conf_duration_provide ());
|
horizon = GNUNET_TIME_relative_to_absolute (TALER_MINT_conf_duration_provide ());
|
||||||
if (GNUNET_TIME_absolute_ntoh (dki->issue.expire_spend).abs_value_us >
|
if (GNUNET_TIME_absolute_ntoh (dki->issue.start).abs_value_us >
|
||||||
horizon.abs_value_us)
|
horizon.abs_value_us)
|
||||||
{
|
{
|
||||||
GNUNET_log (GNUNET_ERROR_TYPE_INFO,
|
GNUNET_log (GNUNET_ERROR_TYPE_INFO,
|
||||||
@ -235,7 +235,9 @@ reload_keys_denom_iter (void *cls,
|
|||||||
&denom_key_hash,
|
&denom_key_hash,
|
||||||
sizeof (struct GNUNET_HashCode));
|
sizeof (struct GNUNET_HashCode));
|
||||||
session = TMH_plugin->get_session (TMH_plugin->cls,
|
session = TMH_plugin->get_session (TMH_plugin->cls,
|
||||||
GNUNET_NO);
|
TMH_test_mode);
|
||||||
|
if (NULL == session)
|
||||||
|
return GNUNET_SYSERR;
|
||||||
/* Try to insert DKI into DB until we succeed; note that if the DB
|
/* Try to insert DKI into DB until we succeed; note that if the DB
|
||||||
failure is persistent, this code may loop forever (as there is no
|
failure is persistent, this code may loop forever (as there is no
|
||||||
sane alternative, we cannot continue without the DKI being in the
|
sane alternative, we cannot continue without the DKI being in the
|
||||||
|
@ -23,6 +23,8 @@ libtaler_plugin_mintdb_postgres_la_LIBADD = \
|
|||||||
$(LTLIBINTL)
|
$(LTLIBINTL)
|
||||||
libtaler_plugin_mintdb_postgres_la_LDFLAGS = \
|
libtaler_plugin_mintdb_postgres_la_LDFLAGS = \
|
||||||
$(TALER_PLUGIN_LDFLAGS) \
|
$(TALER_PLUGIN_LDFLAGS) \
|
||||||
|
$(top_builddir)/src/pq/libtalerpq.la \
|
||||||
|
$(top_builddir)/src/util/libtalerutil.la \
|
||||||
-lpq \
|
-lpq \
|
||||||
-lgnunetutil $(XLIB)
|
-lgnunetutil $(XLIB)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user