From 573426fa26c314baeb535759e9dc3935a1916645 Mon Sep 17 00:00:00 2001 From: Matthias Wachs Date: Mon, 1 Jul 2013 13:15:44 +0000 Subject: [PATCH 1/1] fixing size check in get_session --- src/transport/plugin_transport_unix.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/transport/plugin_transport_unix.c b/src/transport/plugin_transport_unix.c index 1b1873671..db9eb1fbb 100644 --- a/src/transport/plugin_transport_unix.c +++ b/src/transport/plugin_transport_unix.c @@ -758,7 +758,7 @@ unix_plugin_get_session (void *cls, } addrstr = (char *) &ua[1]; addr_str_len = ntohl (ua->addrlen); - if (addr_str_len != address->address_length - sizeof (struct UnixAddress *)) + if (addr_str_len != address->address_length - sizeof (struct UnixAddress)) { /* This can be a legacy address */ return NULL; -- 2.25.1