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

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