projects
/
pgpool2.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6156534
)
Fix coverity warnings.
author
Tatsuo Ishii
<ishii@sraoss.co.jp>
Tue, 24 Sep 2019 06:26:45 +0000
(15:26 +0900)
committer
Tatsuo Ishii
<ishii@sraoss.co.jp>
Tue, 24 Sep 2019 06:57:32 +0000
(15:57 +0900)
src/tools/pgproto/read.c
patch
|
blob
|
blame
|
history
diff --git
a/src/tools/pgproto/read.c
b/src/tools/pgproto/read.c
index d0ffee39dc3b14b81489f8dbb38a5591d0e9a2bc..c9238d4816abbaebdc4214bb42f9bf246c523981 100644
(file)
--- a/
src/tools/pgproto/read.c
+++ b/
src/tools/pgproto/read.c
@@
-1,5
+1,5
@@
/*
- * Copyright (c) 2017-201
8
Tatsuo Ishii
+ * Copyright (c) 2017-201
9
Tatsuo Ishii
*
* Permission to use, copy, modify, and distribute this software and
* its documentation for any purpose and without fee is hereby
@@
-178,7
+178,11
@@
read_until_ready_for_query(PGconn *conn, int timeout)
break;
case 'Z': /* Ready for Query */
- len = read_int32(conn);
+ if (read_int32(conn) < 0)
+ {
+ fprintf(stderr, "read_int32() failed\n");
+ exit(1);
+ }
c = read_char(conn);
fprintf(stderr, "<= BE ReadyForQuery(%c)\n", c);
cont = 0;