aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Watson <rwatson@FreeBSD.org>2006-01-14 00:09:41 +0000
committerRobert Watson <rwatson@FreeBSD.org>2006-01-14 00:09:41 +0000
commitfc4c8258472886e8ff713af05c0b941fd3f56c66 (patch)
tree8d1aca944b0e972d147adeb214132f2a39a718dd
parent71c47d14806b6ce2d70b0b9db1cd15ad3c3d93b8 (diff)
Notes
-rw-r--r--sys/netinet6/ip6_output.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netinet6/ip6_output.c b/sys/netinet6/ip6_output.c
index b7f0cdd259e9..4eb7a6ed368c 100644
--- a/sys/netinet6/ip6_output.c
+++ b/sys/netinet6/ip6_output.c
@@ -3299,7 +3299,7 @@ ip6_setpktopt(optname, buf, len, opt, priv, sticky, cmsg, uproto)
/* turn off the previous option, then set the new option. */
ip6_clearpktopts(opt, optname);
*newdest = malloc(destlen, M_IP6OPT, M_NOWAIT);
- if (newdest == NULL)
+ if (*newdest == NULL)
return (ENOBUFS);
bcopy(dest, *newdest, destlen);