]> Cypherpunks.ru repositories - nncp.git/blobdiff - src/cmd/nncp-daemon/main.go
Raise copyright years
[nncp.git] / src / cmd / nncp-daemon / main.go
index 2d52fcf418a48ecac5cf8955c670d159592cc687..7e40deb3a2da33b8bc8ed045d4eda5886d8a9e04 100644 (file)
@@ -1,6 +1,6 @@
 /*
 NNCP -- Node to Node copy, utilities for store-and-forward data exchange
-Copyright (C) 2016-2020 Sergey Matveev <stargrave@stargrave.org>
+Copyright (C) 2016-2021 Sergey Matveev <stargrave@stargrave.org>
 
 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
@@ -60,7 +60,7 @@ func (c InetdConn) SetWriteDeadline(t time.Time) error {
 
 func (c InetdConn) Close() error {
        if err := c.r.Close(); err != nil {
-               c.w.Close()
+               c.w.Close() // #nosec G104
                return err
        }
        return c.w.Close()
@@ -140,10 +140,10 @@ func main() {
        ctx.Umask()
 
        if *inetd {
-               os.Stderr.Close()
+               os.Stderr.Close() // #nosec G104
                conn := &InetdConn{os.Stdin, os.Stdout}
                performSP(ctx, conn, nice)
-               conn.Close()
+               conn.Close() // #nosec G104
                return
        }
 
@@ -160,7 +160,7 @@ func main() {
                ctx.LogD("daemon", nncp.SDS{"addr": conn.RemoteAddr()}, "accepted")
                go func(conn net.Conn) {
                        performSP(ctx, conn, nice)
-                       conn.Close()
+                       conn.Close() // #nosec G104
                }(conn)
        }
 }