Fix bug in srv_net.c