diff --git a/src/bin/pg_basebackup/receivelog.c b/src/bin/pg_basebackup/receivelog.c index 98c4b7a1e5..71791d3e29 100644 --- a/src/bin/pg_basebackup/receivelog.c +++ b/src/bin/pg_basebackup/receivelog.c @@ -495,7 +495,7 @@ ReceiveXlogStream(PGconn *conn, XLogRecPtr startpos, uint32 timeline, progname, copybuf[0]); goto error; } - if (r < STREAMING_HEADER_SIZE + 1) + if (r < STREAMING_HEADER_SIZE) { fprintf(stderr, _("%s: streaming header too small: %d\n"), progname, r);