diff --git a/man7/unix.7 b/man7/unix.7 index 64f761094..ca6a621d0 100644 --- a/man7/unix.7 +++ b/man7/unix.7 @@ -735,7 +735,7 @@ main(int argc, char *argv[]) /* Wait for incoming connection. */ data_socket = accept(connection_socket, NULL, NULL); - if (ret == \-1) { + if (data_socket == \-1) { perror("accept"); exit(EXIT_FAILURE); }