Skip to content

Commit e85746f

Browse files
RX14matiasgarciaisaia
authored andcommittedAug 4, 2017
Fix LibC.accept segfault
1 parent 890ab45 commit e85746f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

Diff for: ‎src/socket.cr

+1-1
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ class Socket < IO::FileDescriptor
216216

217217
protected def accept_impl
218218
loop do
219-
client_fd = LibC.accept(fd, out client_addr, out client_addrlen)
219+
client_fd = LibC.accept(fd, nil, nil)
220220
if client_fd == -1
221221
if closed?
222222
return

0 commit comments

Comments
 (0)