Skip to content

Commit

Permalink
Fix LibC.accept segfault
Browse files Browse the repository at this point in the history
  • Loading branch information
RX14 authored and matiasgarciaisaia committed Aug 4, 2017
1 parent 890ab45 commit e85746f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/socket.cr
Expand Up @@ -216,7 +216,7 @@ class Socket < IO::FileDescriptor

protected def accept_impl
loop do
client_fd = LibC.accept(fd, out client_addr, out client_addrlen)
client_fd = LibC.accept(fd, nil, nil)
if client_fd == -1
if closed?
return
Expand Down

0 comments on commit e85746f

Please sign in to comment.