sock: Fix a bad code cleanup.