X-Git-Url: http://www.git.cypherpunks.ru/?a=blobdiff_plain;f=src%2Fcheck.go;h=5872a1ffd8282cf8639c7ec786590ea4e1fc41af;hb=0367cce2741e1ce6a89a49fd5c4e9df6005c9744;hp=d6a98fac805f3bcbff2b84af5da4ef804424d56c;hpb=f458bb8a2be143e8f7933956e890c082ba4a4b92;p=nncp.git diff --git a/src/check.go b/src/check.go index d6a98fa..5872a1f 100644 --- a/src/check.go +++ b/src/check.go @@ -1,6 +1,6 @@ /* NNCP -- Node to Node copy, utilities for store-and-forward data exchange -Copyright (C) 2016-2021 Sergey Matveev +Copyright (C) 2016-2022 Sergey Matveev This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -62,7 +62,7 @@ func (ctx *Ctx) checkXxIsBad(nodeId *NodeId, xx TRxTx) bool { return true } gut, err := Check(fd, job.Size, job.HshValue[:], les, ctx.ShowPrgrs) - fd.Close() // #nosec G104 + fd.Close() if err != nil { ctx.LogE("checking", les, err, logMsg) return true