fix uninitialized session
This commit is contained in:
parent
964cd7a459
commit
db46491db9
@ -101,6 +101,15 @@ verify_and_execute_deposit_confirmation (struct MHD_Connection *connection,
|
|||||||
&h);
|
&h);
|
||||||
GNUNET_assert (0 == pthread_mutex_unlock (&lock));
|
GNUNET_assert (0 == pthread_mutex_unlock (&lock));
|
||||||
|
|
||||||
|
session = TAH_plugin->get_session (TAH_plugin->cls);
|
||||||
|
if (NULL == session)
|
||||||
|
{
|
||||||
|
GNUNET_break (0);
|
||||||
|
return TALER_MHD_reply_with_error (connection,
|
||||||
|
MHD_HTTP_INTERNAL_SERVER_ERROR,
|
||||||
|
TALER_EC_DB_SETUP_FAILED,
|
||||||
|
"failed to establish session with database");
|
||||||
|
}
|
||||||
if (! cached)
|
if (! cached)
|
||||||
{
|
{
|
||||||
/* Not in cache, need to verify the signature, persist it, and possibly cache it */
|
/* Not in cache, need to verify the signature, persist it, and possibly cache it */
|
||||||
@ -117,15 +126,6 @@ verify_and_execute_deposit_confirmation (struct MHD_Connection *connection,
|
|||||||
"master_sig");
|
"master_sig");
|
||||||
}
|
}
|
||||||
|
|
||||||
session = TAH_plugin->get_session (TAH_plugin->cls);
|
|
||||||
if (NULL == session)
|
|
||||||
{
|
|
||||||
GNUNET_break (0);
|
|
||||||
return TALER_MHD_reply_with_error (connection,
|
|
||||||
MHD_HTTP_INTERNAL_SERVER_ERROR,
|
|
||||||
TALER_EC_DB_SETUP_FAILED,
|
|
||||||
"failed to establish session with database");
|
|
||||||
}
|
|
||||||
/* execute transaction */
|
/* execute transaction */
|
||||||
qs = TAH_plugin->insert_exchange_signkey (TAH_plugin->cls,
|
qs = TAH_plugin->insert_exchange_signkey (TAH_plugin->cls,
|
||||||
session,
|
session,
|
||||||
|
Loading…
Reference in New Issue
Block a user