poll: Reformat ssh_poll_ctx_resize

Signed-off-by: Jakub Jelen <jjelen@redhat.com>
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
This commit is contained in:
Jakub Jelen
2025-04-24 16:17:34 +02:00
committed by Andreas Schneider
parent f039edd85d
commit a85813e6e6

View File

@@ -571,7 +571,8 @@ static int ssh_poll_ctx_resize(ssh_poll_ctx ctx, size_t new_size)
pollfds = realloc(ctx->pollfds, sizeof(ssh_pollfd_t) * new_size);
if (pollfds == NULL) {
pollptrs = realloc(ctx->pollptrs, sizeof(ssh_poll_handle) * ctx->polls_allocated);
pollptrs = realloc(ctx->pollptrs,
sizeof(ssh_poll_handle) * ctx->polls_allocated);
if (pollptrs == NULL) {
return -1;
}