diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2016-07-22 21:18:41 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-07-22 21:18:41 -0400 |
commit | 31b14fdb6f2f018a9d67c9303aac9903b4227dbd (patch) | |
tree | b44e75dc5b0fff27ad008fbea11d7bdcc994bd12 /src/libsystemd/sd-bus/bus-socket.c | |
parent | c907cba919a1e9840859296f192f3a55345ff29c (diff) | |
parent | 487ddeb8bc1a05816802adb2d5a9dc4416b386fe (diff) |
Merge pull request #3777 from poettering/id128-rework
uuid/id128 code rework
Diffstat (limited to 'src/libsystemd/sd-bus/bus-socket.c')
-rw-r--r-- | src/libsystemd/sd-bus/bus-socket.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsystemd/sd-bus/bus-socket.c b/src/libsystemd/sd-bus/bus-socket.c index f1e2a06050..cfd7753139 100644 --- a/src/libsystemd/sd-bus/bus-socket.c +++ b/src/libsystemd/sd-bus/bus-socket.c @@ -221,7 +221,7 @@ static int bus_socket_auth_verify_client(sd_bus *b) { peer.bytes[i/2] = ((uint8_t) x << 4 | (uint8_t) y); } - if (!sd_id128_equal(b->server_id, SD_ID128_NULL) && + if (!sd_id128_is_null(b->server_id) && !sd_id128_equal(b->server_id, peer)) return -EPERM; |