Skip to content

Commit

Permalink
Revert "Fix very silly bug"
Browse files Browse the repository at this point in the history
This reverts commit 68f6c5a.
  • Loading branch information
lrstewart committed Sep 8, 2023
1 parent 68f6c5a commit 2120599
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tls/s2n_ktls_io.c
Original file line number Diff line number Diff line change
Expand Up @@ -353,8 +353,8 @@ ssize_t s2n_ktls_sendv_with_offset(struct s2n_connection *conn, const struct iov
size_t offs = offs_in;

DEFER_CLEANUP(struct s2n_blob new_bufs = { 0 }, s2n_free_or_wipe);
uint8_t new_bufs_mem[S2N_MAX_STACK_IOVECS_MEM] = { 0 };
if (offs > 0) {
uint8_t new_bufs_mem[S2N_MAX_STACK_IOVECS_MEM] = { 0 };
POSIX_GUARD(s2n_blob_init(&new_bufs, new_bufs_mem, sizeof(new_bufs_mem)));
POSIX_GUARD_RESULT(s2n_ktls_update_bufs_with_offset(&bufs, &count, offs, &new_bufs));
}
Expand Down

0 comments on commit 2120599

Please sign in to comment.