journald: fix forwarding to syslog
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 2 Mar 2020 13:44:31 +0000 (14:44 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 2 Mar 2020 14:47:41 +0000 (15:47 +0100)
commit64177e9e4e8b377b12980161d92a03923c2fa890
treea6cbfed4ca08a8a218221ccb8c1bb44fc89c4d04
parent8ad2012d1e017939bb50a6c8ac09ebec9f08dee7
journald: fix forwarding to syslog

.msg_namelen was set to a bogus value before we actually stored the path in the
the structure. sockaddr_un_set_path() returns the length, so just use that.

Fixes #14799.
src/journal/journald-syslog.c