Update server.c

fix bug