From 89d185188acf505a8308e1de21fb629160c7decf Mon Sep 17 00:00:00 2001 From: "Bjoern A. Zeeb" Date: Fri, 30 Jan 2009 20:17:08 +0000 Subject: [PATCH] Use NULL rather than 0 when comparing pointers. MFC after: 2 weeks --- sys/netipsec/ipsec_output.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/netipsec/ipsec_output.c b/sys/netipsec/ipsec_output.c index 57284273a0f0..ec6b41e65c92 100644 --- a/sys/netipsec/ipsec_output.c +++ b/sys/netipsec/ipsec_output.c @@ -791,14 +791,14 @@ ipsec6_output_tunnel(struct ipsec_output_state *state, struct secpolicy *sp, int 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;