mirror of
https://github.com/Picocrypt/Picocrypt.git
synced 2025-06-27 21:56:14 +02:00
missing an err != nil check
This commit is contained in:
parent
3403cd68a8
commit
a0a7f430e4
1 changed files with 1 additions and 1 deletions
|
@ -605,7 +605,7 @@ func draw() {
|
|||
panic(errors.New("fatal crypto/rand error"))
|
||||
}
|
||||
n, err := fout.Write(data)
|
||||
if n != 32 {
|
||||
if err != nil || n != 32 {
|
||||
fout.Close()
|
||||
panic(errors.New("failed to write full keyfile"))
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue