net: zoap: Fix NULL pointer access
net: zoap: Fix NULL pointer access

The code was setting pointer to null and then access it.

Coverity-CID: 157575

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

bigdinotech/zephyr,bigdinotech/zephyr,bigdinotech/zephyr,bigdinotech/zephyr,bigdinotech/zephyr