Fix parsing of IPv6 headers in ip_packet_t
authorTobias Brunner <tobias@strongswan.org>
Fri, 28 Sep 2012 13:15:07 +0000 (15:15 +0200)
committerTobias Brunner <tobias@strongswan.org>
Fri, 28 Sep 2012 13:15:07 +0000 (15:15 +0200)
src/libipsec/ip_packet.c

index 52aeaa2..096ca33 100644 (file)
@@ -161,6 +161,7 @@ ip_packet_t *ip_packet_create(chunk_t packet)
                        dst = host_create_from_chunk(AF_INET6,
                                                                                 chunk_from_thing(ip->ip6_dst), 0);
                        next_header = ip->ip6_nxt;
+                       break;
                }
 #endif /* HAVE_NETINET_IP6_H */
                default: