Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

ip6_getpktaddrs() should return -1 if the stored addresses are invalid.

  • Loading branch information...
commit dd8d3c2207fc339753456e65673201d8fb7059ea 1 parent 354c95c
jinmei authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  kame/sys/netinet6/ip6_input.c
View
3  kame/sys/netinet6/ip6_input.c
@@ -1,4 +1,4 @@
-/* $KAME: ip6_input.c,v 1.308 2003/04/02 10:06:48 itojun Exp $ */
+/* $KAME: ip6_input.c,v 1.309 2003/04/04 09:28:37 jinmei Exp $ */
/*
* Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -1336,6 +1336,7 @@ ip6_getpktaddrs(m, src, dst)
if (((struct ip6aux *)(mtag + 1))->ip6a_src.sin6_family != AF_INET6 ||
((struct ip6aux *)(mtag + 1))->ip6a_dst.sin6_family != AF_INET6) {
printf("ip6_getpktaddrs: src or dst are invalid\n");
+ return (-1);
}
if (src)
Please sign in to comment.
Something went wrong with that request. Please try again.