samples: net: Fix out-of-bound access
samples: net: Fix out-of-bound access

Payload variable can hold max 64 bytes but value of size can be more
than that. Memsetting using value of size can overrun payload array.
Fixes coverity issue.

Coverity-CID: 187823
Fixes: #9638

Signed-off-by: Ravi kumar Veeramally <406c082aeb452858c41b213a757768e1c1dff29e@linux.intel.com>

zephyrproject-rtos/zephyr,galak/zephyr,finikorg/zephyr,punitvara/zephyr,explora26/zephyr,kraj/zephyr,nashif/zephyr,GiulianoFranchetto/zephyr,Vudentz/zephyr,GiulianoFranchetto/zephyr,Vudentz/zephyr,zephyrproject-rtos/zephyr,explora26/zephyr,zephyrproject-rtos/zephyr,nashif/zephyr,finikorg/zephyr,galak/zephyr,ldts/zephyr,finikorg/zephyr,punitvara/zephyr,GiulianoFranchetto/zephyr,kraj/zephyr,kraj/zephyr,punitvara/zephyr,galak/zephyr,finikorg/zephyr,ldts/zephyr,GiulianoFranchetto/zephyr,nashif/zephyr,zephyrproject-rtos/zephyr,galak/zephyr,kraj/zephyr,ldts/zephyr,finikorg/zephyr,zephyrproject-rtos/zephyr,galak/zephyr,explora26/zephyr,punitvara/zephyr,Vudentz/zephyr,explora26/zephyr,Vudentz/zephyr,kraj/zephyr,nashif/zephyr,explora26/zephyr,punitvara/zephyr,GiulianoFranchetto/zephyr,ldts/zephyr,nashif/zephyr,ldts/zephyr,Vudentz/zephyr,Vudentz/zephyr