Update packetfunctions.c

I added a new case in packetfunctions_sameAddress function because when address's type was zero or ADDR_NONE, it showed a segmentation fault. With this change be solve the segmentation fault problem.