diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2013-07-01 13:15:44 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2013-07-01 13:15:44 +0000 |
commit | 573426fa26c314baeb535759e9dc3935a1916645 (patch) | |
tree | ae68a52bbf76bcf5c26f020aaa17d3c091b8defa /src/transport/plugin_transport_unix.c | |
parent | 170ceca40f084bdeeaeb5c1f1b9a194ff44c648d (diff) | |
download | gnunet-573426fa26c314baeb535759e9dc3935a1916645.tar.gz gnunet-573426fa26c314baeb535759e9dc3935a1916645.zip |
fixing size check in get_session
Diffstat (limited to 'src/transport/plugin_transport_unix.c')
-rw-r--r-- | src/transport/plugin_transport_unix.c | 2 |
1 files changed, 1 insertions, 1 deletions
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, | |||
758 | } | 758 | } |
759 | addrstr = (char *) &ua[1]; | 759 | addrstr = (char *) &ua[1]; |
760 | addr_str_len = ntohl (ua->addrlen); | 760 | addr_str_len = ntohl (ua->addrlen); |
761 | if (addr_str_len != address->address_length - sizeof (struct UnixAddress *)) | 761 | if (addr_str_len != address->address_length - sizeof (struct UnixAddress)) |
762 | { | 762 | { |
763 | /* This can be a legacy address */ | 763 | /* This can be a legacy address */ |
764 | return NULL; | 764 | return NULL; |