diff --git a/src/buffer.c b/src/buffer.c index 6809e705..c98e6446 100644 --- a/src/buffer.c +++ b/src/buffer.c @@ -476,7 +476,7 @@ void *ssh_buffer_get(struct ssh_buffer_struct *buffer){ * @see ssh_buffer_get() */ uint32_t ssh_buffer_get_len(struct ssh_buffer_struct *buffer){ - return buffer->used; + return ssh_buffer_get_rest_len(buffer); } /**