Skip to content
Snippets Groups Projects
Commit b36f8940 authored by Stepan Salenikovich's avatar Stepan Salenikovich
Browse files

daemon: prevent empty address crash

Refs #68355

Change-Id: Idce421876028a88dccdc9b8bfdf5c3e638c121af
parent 578d1406
Branches
No related tags found
No related merge requests found
...@@ -164,6 +164,8 @@ public: ...@@ -164,6 +164,8 @@ public:
} }
inline socklen_t getLength() const { inline socklen_t getLength() const {
if (not *this)
return 0;
return pj_sockaddr_get_len(&addr); return pj_sockaddr_get_len(&addr);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment