unexpected eof

pull/299/head^2
v2ray 2016-06-02 21:20:58 +02:00
parent ff0cb89efa
commit b9c88b673b
1 changed files with 2 additions and 2 deletions

View File

@ -59,7 +59,7 @@ func (this *AuthChunkReader) Read() (*alloc.Buffer, error) {
_, err := buffer.FillFrom(this.reader)
if err != nil {
buffer.Release()
return nil, err
return nil, io.ErrUnexpectedEOF
}
}
length := serial.BytesToUint16(buffer.Value[:2])
@ -70,7 +70,7 @@ func (this *AuthChunkReader) Read() (*alloc.Buffer, error) {
_, err := buffer.FillFrom(this.reader)
if err != nil {
buffer.Release()
return nil, err
return nil, io.ErrUnexpectedEOF
}
}