solved valgrind error on sendto()