Skip to content
Commit 98db4d97 authored by Andrey Dodonov's avatar Andrey Dodonov Committed by Chris Friedt
Browse files

net: lib: http_server: prevent busfault if socket family is AF_UNSPEC



If webserver uses custom socket creation,
and it's family is AF_UNSPEC, net_sprint_addr will return NULL,
which leads to LOG_DBG crashing with busfault.
Add NULL check for that.

Signed-off-by: default avatarAndrey Dodonov <Andrey.Dodonov@endress.com>
parent a317f194
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment