Skip to content

Commit

Permalink
Fix segfault
Browse files Browse the repository at this point in the history
  • Loading branch information
toots committed Mar 18, 2024
1 parent dcf8dfe commit 4779849
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGES
Expand Up @@ -2,6 +2,7 @@
=====
* Raise a proper error when non-blocking connection
fails.
* Fix poll segfault.

1.0.2 (2024-01-08)
======
Expand Down
2 changes: 1 addition & 1 deletion src/cry_stubs.c
Expand Up @@ -109,7 +109,7 @@ CAMLprim value caml_cry_poll(value _read, value _write, value _err,
nwrite++;
}
if (fds[n].revents & POLLERR) {
Store_field(_pread, nerr, Val_fd(fds[n].fd));
Store_field(_perr, nerr, Val_fd(fds[n].fd));
nerr++;
}
}
Expand Down

0 comments on commit 4779849

Please sign in to comment.