Skip to content
Commit 4234e801 authored by Robert Lubos's avatar Robert Lubos Committed by Stephanos Ioannidis
Browse files

net: sockets: Fix TLS_HOSTNAME option length inconsistency



The TLS_HOSTNAME socket option expects a NULL terminated string and
doesn't really care about the optlen provided. However, as the option
expects that the string is NULL terminated, the optlen value should take
NULL character into account, for consistency across the codebase.

Signed-off-by: default avatarRobert Lubos <robert.lubos@nordicsemi.no>
parent fb9cdee0
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment