Diffusion KIO bf7bfe9353c5

Add null pointer check when creating SocketAddress

Authored by chinmoyr on Jun 1 2018, 5:21 PM.

Description

Add null pointer check when creating SocketAddress

Summary:
If for some reason SocketAddress:make_address() fails to create a proper
sockaddr_un structure then SocketAddress::address() will return a null
pointer. In such case, to prevent application crash, check for null pointer
prior to any socket operation.

Reviewers: dfaure, ossi

Reviewed By: dfaure, ossi

Subscribers: kde-frameworks-devel

Tags: Frameworks

Differential Revision: https://phabricator.kde.org/D12744

Details

Committed
chinmoyrJun 1 2018, 5:25 PM
Reviewer
dfaure
Differential Revision
D12744: Add null pointer check when creating SocketAddress
Parents
R241:ae08be3a4847: Create socket file in user's runtime directory
Branches
Unknown
Tags
Unknown