Wrap correct raw.Control error on FreeBSD

Follow #1 after FreeBSD support was merged in #3.

Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
This commit is contained in:
Tobias Klauser
2021-03-03 08:02:05 +01:00
parent 56e6948971
commit ad37553302
+1 -1
View File
@@ -43,7 +43,7 @@ func getUnix(c *net.UnixConn) (*Creds, error) {
}
})
if cerr != nil {
return nil, fmt.Errorf("raw.Control: %w", err)
return nil, fmt.Errorf("raw.Control: %w", cerr)
}
if err != nil {
return nil, err