mirror of
https://github.com/netbirdio/gvisor.git
synced 2026-05-22 17:12:49 -07:00
[packetimpact] Fix typo in comment
PiperOrigin-RevId: 501057728
This commit is contained in:
@@ -503,7 +503,7 @@ func withSavedNetNS(f func() error) error {
|
||||
return err
|
||||
}
|
||||
defer func() {
|
||||
// Resotre the namespace when we return from f.
|
||||
// Restore the namespace when we return from f.
|
||||
if err := unix.Setns(saved, unix.CLONE_NEWNET); err != nil {
|
||||
panic(fmt.Sprintf("setns(%d, CLONE_NEWNET) = %s", saved, err))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user