summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Harris <pharris@opentext.com>2011-03-02 18:14:43 -0500
committerPeter Harris <pharris@opentext.com>2011-03-02 18:14:43 -0500
commit171f153c2a53ebd344a9ed9613742c2ccdefd10b (patch)
treec5cb8dd7791483661729cb648f667253e1d82952
parentfd93ba09f760a785337bbed4cc0a79348dc6f451 (diff)
Fix reading of errors from the server
All replies/events/errors would be broken after the first error, due to a short read.
-rw-r--r--xgob.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/xgob.go b/xgob.go
index 223fcaf..36bdf9e 100644
--- a/xgob.go
+++ b/xgob.go
@@ -487,7 +487,7 @@ func (c *Connection) read(in *bufio.Reader) {
e.BadValue = readUint32(in)
e.Minor = readUint16(in)
e.Major, _ = in.ReadByte()
- skipBytes(in, 20)
+ skipBytes(in, 21)
c.postReply(e.Sequence, e)
case 1:
var r Reply