Skip to content

Commit

Permalink
Fixed realloc if statement variables missmatch
Browse files Browse the repository at this point in the history
  • Loading branch information
Ximelele committed May 13, 2024
1 parent 07a78dd commit 9501de3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/forward.c
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ int accept_peer(int listenfd, int peer_type) {
peers = peers_realloc;
if (fds_realloc)
fds = fds_realloc;
if (!peers_realloc || !peers_realloc)
if (!peers_realloc || !fds_realloc)
return -1;
max_peers += PEER_POOL_INCREMENT;
}
Expand Down

0 comments on commit 9501de3

Please sign in to comment.