aboutgitcodebugslistschat
diff options
context:
space:
mode:
-rw-r--r--tap.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tap.c b/tap.c
index 8386dbf..03cd886 100644
--- a/tap.c
+++ b/tap.c
@@ -935,9 +935,9 @@ static bool ipv6_l4hdr(struct iov_tail *data, uint8_t *proto, size_t *dlen)
nh = o->nexthdr;
hdrlen = (o->hdrlen + 1) * 8;
- if (IPV6_NH_OPT(nh))
- iov_drop_header(data, hdrlen);
- else
+ iov_drop_header(data, hdrlen);
+
+ if (!IPV6_NH_OPT(nh))
goto found;
}