We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b3e495a commit d711f45Copy full SHA for d711f45
1 file changed
lib/std/crypto/tls/Client.zig
@@ -1207,6 +1207,7 @@ const VecPut = struct {
1207
/// Returns the amount actually put which is always equal to bytes.len
1208
/// unless the vectors ran out of space.
1209
fn put(vp: *VecPut, bytes: []const u8) usize {
1210
+ if (vp.idx >= vp.iovecs.len) return 0;
1211
var bytes_i: usize = 0;
1212
while (true) {
1213
const v = vp.iovecs[vp.idx];
0 commit comments