Commit df13dcf9 authored by Jukka Rissanen's avatar Jukka Rissanen
Browse files

net: app: No need to print anything if resolving is not possible



The code was trying to print peer IP address string but that
pointer could contain garbage. There is actually no need to print
anything in this case, the error code return is enough.

Signed-off-by: default avatarJukka Rissanen <jukka.rissanen@linux.intel.com>
parent 7088d4e9
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -107,7 +107,6 @@ static int try_resolve(struct net_app_ctx *ctx,
		       s32_t timeout)
{
#if !defined(CONFIG_DNS_RESOLVER)
	NET_ERR("Invalid IP address %s", peer_addr_str);
	return -EINVAL;
#else
	int ret;