Date: Fri, 30 Jan 2009 20:17:08 +0000 (UTC) From: "Bjoern A. Zeeb" <bz@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r187936 - head/sys/netipsec Message-ID: <200901302017.n0UKH8tv002125@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: bz Date: Fri Jan 30 20:17:08 2009 New Revision: 187936 URL: http://svn.freebsd.org/changeset/base/187936 Log: Use NULL rather than 0 when comparing pointers. MFC after: 2 weeks Modified: head/sys/netipsec/ipsec_output.c Modified: head/sys/netipsec/ipsec_output.c ============================================================================== --- head/sys/netipsec/ipsec_output.c Fri Jan 30 19:33:04 2009 (r187935) +++ head/sys/netipsec/ipsec_output.c Fri Jan 30 20:17:08 2009 (r187936) @@ -791,14 +791,14 @@ ipsec6_output_tunnel(struct ipsec_output RTFREE(state->ro->ro_rt); state->ro->ro_rt = NULL; } - if (state->ro->ro_rt == 0) { + if (state->ro->ro_rt == NULL) { bzero(dst6, sizeof(*dst6)); dst6->sin6_family = AF_INET6; dst6->sin6_len = sizeof(*dst6); dst6->sin6_addr = ip6->ip6_dst; rtalloc(state->ro); } - if (state->ro->ro_rt == 0) { + if (state->ro->ro_rt == NULL) { V_ip6stat.ip6s_noroute++; V_ipsec6stat.ips_out_noroute++; error = EHOSTUNREACH;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200901302017.n0UKH8tv002125>