Skip to content
Snippets Groups Projects
Commit a33399ed authored by Martine Lenders's avatar Martine Lenders
Browse files

gnrc_sock_udp: provide fix for error state for full port pool

parent 0151655d
No related branches found
No related tags found
No related merge requests found
......@@ -258,7 +258,7 @@ ssize_t sock_udp_send(sock_udp_t *sock, const void *data, size_t len,
/* no sock or sock currently unbound */
memset(&local, 0, sizeof(local));
if ((src_port = _get_dyn_port(sock)) == GNRC_SOCK_DYN_PORTRANGE_ERR) {
return -EINVAL;
return -EADDRINUSE;
}
/* cppcheck-suppress nullPointer
* (reason: sock *can* be NULL at this place, cppcheck is weird here as
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment