handle revoke followed immediately by a sign request

This commit is contained in:
Christian Grothoff 2021-11-22 15:19:59 +01:00
parent c7dc62b42e
commit 0ac1b7abad
No known key found for this signature in database
GPG Key ID: 939E6BE1E29FC3CC
3 changed files with 64 additions and 58 deletions

View File

@ -533,7 +533,7 @@ withdraw_traits (void *cls,
return TALER_TESTING_get_trait ((ws->expected_response_code == MHD_HTTP_OK)
? &traits[0] /* we have reserve history */
: &traits[1],/* skip reserve history */
: &traits[1], /* skip reserve history */
ret,
trait,
index);

View File

@ -232,7 +232,10 @@ TES_read_work (void *cls,
size_t off = 0;
uint16_t msize;
const struct GNUNET_MessageHeader *hdr;
enum GNUNET_GenericReturnValue ret;
while (1)
{
do
{
ssize_t recv_size;
@ -282,13 +285,16 @@ TES_read_work (void *cls,
}
} while (off < msize);
if (off > msize)
{
GNUNET_break_op (0);
return GNUNET_SYSERR;
}
return dispatch (client,
ret = dispatch (client,
hdr);
if ( (GNUNET_OK != ret) ||
(off == msize) )
return ret;
memmove (buf,
&buf[msize],
off - msize);
off -= msize;
}
}