mirror of
https://github.com/rwinkhart/peercred-mini.git
synced 2026-08-28 04:46:43 -04:00
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:
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user