Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
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)