UDP packet is not overwritten when it is sent

it is now fine that I have used this

for(int i=0;i<UDP_TX_PACKET_MAX_SIZE;i++) packetBuffer[i] = 0;