lwm2m: handle return code from lwm2m_socket_add

Handle return code from lwm2m_socket_add

Signed-off-by: Kiril Petrov <retfie@gmail.com>
This commit is contained in:
Kiril Petrov 2020-02-23 20:07:59 +02:00 committed by Jukka Rissanen
parent be4380f5e2
commit 539c3e7fa8

View file

@ -4368,8 +4368,7 @@ int lwm2m_socket_start(struct lwm2m_ctx *client_ctx)
return -errno;
}
lwm2m_socket_add(client_ctx);
return 0;
return lwm2m_socket_add(client_ctx);
}
int lwm2m_parse_peerinfo(char *url, struct sockaddr *addr, bool *use_dtls)