diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2006-03-15 15:37:41 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2006-03-15 15:37:41 +0000 |
commit | 947efc584e53209f8746e387cbb258e377499e86 (patch) | |
tree | 0e613c1bdd6a7983c3260ac8bbb260d2d7d94797 /usr.sbin/bgpd/rde_rib.c | |
parent | e27bc17fa6910f4591272cf751209d537ee8e303 (diff) |
In nexthop_compare() if the two passed pointers point to the same object
the odds are better than good that there is no difference.
Diffstat (limited to 'usr.sbin/bgpd/rde_rib.c')
-rw-r--r-- | usr.sbin/bgpd/rde_rib.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/bgpd/rde_rib.c b/usr.sbin/bgpd/rde_rib.c index d752d97e6ad..1908d831fac 100644 --- a/usr.sbin/bgpd/rde_rib.c +++ b/usr.sbin/bgpd/rde_rib.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rde_rib.c,v 1.83 2006/01/24 13:34:33 claudio Exp $ */ +/* $OpenBSD: rde_rib.c,v 1.84 2006/03/15 15:37:40 claudio Exp $ */ /* * Copyright (c) 2003, 2004 Claudio Jeker <claudio@openbsd.org> @@ -952,7 +952,7 @@ nexthop_compare(struct nexthop *na, struct nexthop *nb) { struct bgpd_addr *a, *b; - if (na == NULL && nb == NULL) + if (na == nb) return (0); if (na == NULL) return (-1); |