Skip to content

Commit

Permalink
handling f.Seek error
Browse files Browse the repository at this point in the history
Signed-off-by: h0x0er <jatink843@protonmail.com>
  • Loading branch information
h0x0er committed Dec 8, 2023
1 parent f542990 commit 3dee6ee
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion user/module/probe_openssl_lib.go
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,10 @@ func (m *MOpenSSLProbe) detectOpenssl(soPath string) error {

totalReadCount += readCount

f.Seek(sectionOffset+int64(totalReadCount), 0)
_, err = f.Seek(sectionOffset+int64(totalReadCount), 0)
if err != nil {
break
}

clear(buf)

Expand Down

0 comments on commit 3dee6ee

Please sign in to comment.