Skip to content

Commit

Permalink
Merge pull request grpc#12126 from dutor/fix-accept-queue-init
Browse files Browse the repository at this point in the history
Fix init_max_accept_queue_size
  • Loading branch information
ctiller authored Dec 4, 2017
2 parents 6a019e7 + 85f9e80 commit a37437d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/lib/iomgr/tcp_server_utils_posix_common.cc
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ static void init_max_accept_queue_size(void) {
if (fgets(buf, sizeof buf, fp)) {
char* end;
long i = strtol(buf, &end, 10);
if (i > 0 && i <= INT_MAX && end && *end == 0) {
if (i > 0 && i <= INT_MAX && end && *end == '\n') {
n = (int)i;
}
}
Expand Down

0 comments on commit a37437d

Please sign in to comment.