This website works better with JavaScript.
Home
Explore
Help
Sign In
closed-social
/
gitea
Watch
3
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Projects
0
Releases
0
Wiki
Activity
Browse Source
fixed panic error on user login
for-closed-social
blemasle
9 years ago
parent
c5c5aac7a5
commit
e1a4f99eaa
1 changed files
with
5 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+5
-0
modules/asn1-ber/ber.go
+ 5
- 0
modules/asn1-ber/ber.go
View File
@ -5,6 +5,7 @@ import (
"fmt"
"io"
"reflect"
"errors"
)
type
Packet
struct
{
@ -177,6 +178,10 @@ func readBytes(reader io.Reader, buf []byte) error {
idx
:=
0
buflen
:=
len
(
buf
)
if
reader
==
nil
{
return
errors
.
New
(
"reader was nil, aborting"
)
}
for
idx
<
buflen
{
n
,
err
:=
reader
.
Read
(
buf
[
idx
:
]
)
if
err
!=
nil
{
Write
Preview
Loading…
Cancel
Save