From 19fd9a7c1d9fcb53a92ab8f6aa265e94bee3ed82 Mon Sep 17 00:00:00 2001 From: Matias Fontanini Date: Sun, 13 Aug 2017 10:30:23 -0700 Subject: [PATCH] Don't skip inner PDU parsing on LLC when building on Windows Relates to issue #236 --- src/loopback.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/loopback.cpp b/src/loopback.cpp index 9246505..0ffeccd 100644 --- a/src/loopback.cpp +++ b/src/loopback.cpp @@ -64,7 +64,7 @@ Loopback::Loopback() Loopback::Loopback(const uint8_t* buffer, uint32_t total_sz) { InputMemoryStream stream(buffer, total_sz); family_ = stream.read(); - #ifndef _WIN32 + if (total_sz) { switch (family_) { case PF_INET: @@ -78,7 +78,6 @@ Loopback::Loopback(const uint8_t* buffer, uint32_t total_sz) { break; }; } - #endif // _WIN32 } void Loopback::family(uint32_t family_id) {