core: be more defensive if we can't determine per-connection socket peer (#7329)
authorLennart Poettering <lennart@poettering.net>
Fri, 17 Nov 2017 14:22:11 +0000 (15:22 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 17 Nov 2017 14:22:11 +0000 (15:22 +0100)
commitf56e7bfe2b330798f8421b5e081ad8ea79af8216
tree495f3a8001b91744d6b816db4297f8ae1606e876
parentc37b4f3f9f94cdf9260d86c45e0dccc1296f3b95
core: be more defensive if we can't determine per-connection socket peer (#7329)

Let's handle gracefully if a client disconnects very early on.

This builds on #4120, but relaxes the condition checks further, since we
getpeername() might already fail during ExecStartPre= and friends.

Fixes: #7172
src/core/service.c