bug socks.c