mirror of
https://github.com/tmate-io/tmate-ssh-server.git
synced 2020-11-18 19:53:51 -08:00
nits
This commit is contained in:
parent
c50bdfccdd
commit
8c17050977
@ -372,7 +372,8 @@ static void tmate_fin(__unused struct tmate_session *session,
|
||||
static void tmate_reconnect(__unused struct tmate_session *session,
|
||||
__unused struct tmate_unpacker *uk)
|
||||
{
|
||||
/* Used by the proxy */
|
||||
if (!tmate_has_proxy())
|
||||
tmate_fatal("Cannot do reconnections without the proxy");
|
||||
}
|
||||
|
||||
static void restore_snapshot_grid(struct grid *grid, struct tmate_unpacker *uk)
|
||||
|
@ -285,7 +285,6 @@ void tmate_decoder_init(struct tmate_decoder *decoder, tmate_decoder_reader *rea
|
||||
void tmate_decoder_get_buffer(struct tmate_decoder *decoder,
|
||||
char **buf, size_t *len)
|
||||
{
|
||||
ssize_t current_size = msgpack_unpacker_message_size(&decoder->unpacker);
|
||||
if (!msgpack_unpacker_reserve_buffer(&decoder->unpacker, UNPACKER_RESERVE_SIZE))
|
||||
tmate_fatal("cannot expand decoder buffer");
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user