Skip to content
Commit 43b37cef authored by Jukka Rissanen's avatar Jukka Rissanen Committed by Anas Nashif
Browse files

net: conn: Check duplicate UDP/TCP connection handlers



When a new UDP or TCP connection handler is to be registered,
we need to check if identical handler has already been created.
If a duplicate is found, the registering call will return -EALREADY.

The earlier code did not check this but allowed two identical
handlers to be created. The latter handler was never called in
this case.

Signed-off-by: default avatarJukka Rissanen <jukka.rissanen@linux.intel.com>
parent c77460da
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment