diff options
author | Markus Friedl <markus@cvs.openbsd.org> | 2013-01-17 10:05:18 +0000 |
---|---|---|
committer | Markus Friedl <markus@cvs.openbsd.org> | 2013-01-17 10:05:18 +0000 |
commit | 315557ca42dfdc8c26c5bc73b8a17cff40bec320 (patch) | |
tree | d2792a696a4611651afd951b8ecc7d231cdfba4d /usr.sbin | |
parent | 0490628c0b0ca5ba7e125158c72e928e7cfa5cc7 (diff) |
do not send IMSG_LS_UPD if we have no links; ok claudio
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/ospfd/ospfe.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/ospfd/ospfe.c b/usr.sbin/ospfd/ospfe.c index 81d997cb4ba..3c857999ac0 100644 --- a/usr.sbin/ospfd/ospfe.c +++ b/usr.sbin/ospfd/ospfe.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ospfe.c,v 1.83 2011/07/04 04:34:14 claudio Exp $ */ +/* $OpenBSD: ospfe.c,v 1.84 2013/01/17 10:05:17 markus Exp $ */ /* * Copyright (c) 2005 Claudio Jeker <claudio@openbsd.org> @@ -1004,7 +1004,7 @@ orig_rtr_lsa(struct area *area) memcpy(ibuf_seek(buf, LS_CKSUM_OFFSET, sizeof(chksum)), &chksum, sizeof(chksum)); - if (self) + if (self && num_links) imsg_compose_event(iev_rde, IMSG_LS_UPD, self->peerid, 0, -1, buf->buf, ibuf_size(buf)); else |