samples: net: zperf: Check UDP pkt before accessing it
samples: net: zperf: Check UDP pkt before accessing it

Check that we do not try to access fragment when UDP packet is
received if pkt is NULL. In practice this should not happen for
UDP but do the checks in proper order anyway.

Coverity-CID: 179252
Fixes #5057

Signed-off-by: Jukka Rissanen <f9f077d1da4c7aa947f9864fa5a28c3588f6a45d@linux.intel.com>

kraj/zephyr,ldts/zephyr,aceofall/zephyr-iotos,explora26/zephyr,aceofall/zephyr-iotos,nashif/zephyr,ldts/zephyr,nashif/zephyr,kraj/zephyr,kraj/zephyr,finikorg/zephyr,galak/zephyr,ldts/zephyr,Vudentz/zephyr,galak/zephyr,Vudentz/zephyr,explora26/zephyr,zephyrproject-rtos/zephyr,Vudentz/zephyr,mbolivar/zephyr,aceofall/zephyr-iotos,nashif/zephyr,zephyriot/zephyr,explora26/zephyr,finikorg/zephyr,nashif/zephyr,galak/zephyr,Vudentz/zephyr,punitvara/zephyr,galak/zephyr,GiulianoFranchetto/zephyr,GiulianoFranchetto/zephyr,zephyriot/zephyr,explora26/zephyr,finikorg/zephyr,zephyrproject-rtos/zephyr,punitvara/zephyr,finikorg/zephyr,mbolivar/zephyr,aceofall/zephyr-iotos,finikorg/zephyr,mbolivar/zephyr,zephyriot/zephyr,ldts/zephyr,kraj/zephyr,zephyrproject-rtos/zephyr,GiulianoFranchetto/zephyr,GiulianoFranchetto/zephyr,zephyriot/zephyr,aceofall/zephyr-iotos,zephyrproject-rtos/zephyr,mbolivar/zephyr,mbolivar/zephyr,punitvara/zephyr,zephyrproject-rtos/zephyr,kraj/zephyr,zephyriot/zephyr,ldts/zephyr,galak/zephyr,Vudentz/zephyr,punitvara/zephyr,nashif/zephyr,explora26/zephyr,Vudentz/zephyr,GiulianoFranchetto/zephyr,punitvara/zephyr