Skip to content

Commit cff0241

Browse files
committed
Terminate message doesn't have a trailing zero byte.
1 parent e77aaad commit cff0241

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/interfaces/jdbc/org/postgresql/PG_Stream.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -383,12 +383,11 @@ public void flush() throws SQLException
383383
*/
384384
public void close() throws IOException
385385
{
386-
pg_output.write("X\0".getBytes());
386+
pg_output.write("X".getBytes());
387387
pg_output.flush();
388388
pg_output.close();
389389
pg_input.close();
390390
connection.close();
391391
}
392392

393393
}
394-

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy