fix "jump to invalid address"
This commit is contained in:
parent
ea80ab4f45
commit
a65823fa32
@ -183,6 +183,10 @@ connect_with_state_run (void *cls,
|
|||||||
0,
|
0,
|
||||||
&serialized_keys));
|
&serialized_keys));
|
||||||
|
|
||||||
|
TALER_LOG_DEBUG ("Serialized key-state: %s\n",
|
||||||
|
json_dumps (serialized_keys,
|
||||||
|
JSON_INDENT (1)));
|
||||||
|
|
||||||
GNUNET_assert
|
GNUNET_assert
|
||||||
(GNUNET_OK == TALER_TESTING_get_trait_url
|
(GNUNET_OK == TALER_TESTING_get_trait_url
|
||||||
(state_cmd,
|
(state_cmd,
|
||||||
@ -199,6 +203,22 @@ connect_with_state_run (void *cls,
|
|||||||
TALER_EXCHANGE_OPTION_END);
|
TALER_EXCHANGE_OPTION_END);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Cleanup the state of a "connect with state" CMD. Just
|
||||||
|
* a placeholder to avoid jumping on an invalid address.
|
||||||
|
*
|
||||||
|
* @param cls closure.
|
||||||
|
* @param cmd the command which is being cleaned up.
|
||||||
|
*/
|
||||||
|
void
|
||||||
|
connect_with_state_cleanup
|
||||||
|
(void *cls,
|
||||||
|
const struct TALER_TESTING_Command *cmd)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Make a serialize-keys CMD. It will ask for
|
* Make a serialize-keys CMD. It will ask for
|
||||||
* keys serialization __and__ disconnect from the
|
* keys serialization __and__ disconnect from the
|
||||||
@ -243,6 +263,7 @@ TALER_TESTING_cmd_connect_with_state (const char *label,
|
|||||||
.cls = (char *) state_reference,
|
.cls = (char *) state_reference,
|
||||||
.label = label,
|
.label = label,
|
||||||
.run = connect_with_state_run,
|
.run = connect_with_state_run,
|
||||||
|
.cleanup = connect_with_state_cleanup
|
||||||
};
|
};
|
||||||
|
|
||||||
return cmd;
|
return cmd;
|
||||||
|
Loading…
Reference in New Issue
Block a user