diff options
author | Renato Westphal <renato@cvs.openbsd.org> | 2016-05-23 15:38:59 +0000 |
---|---|---|
committer | Renato Westphal <renato@cvs.openbsd.org> | 2016-05-23 15:38:59 +0000 |
commit | 3590efdb36e7192ab935403c96039a3f78c9328a (patch) | |
tree | 3440d75ef3241fd832a2d25dd573cf00f0c9d25e | |
parent | 6cb38975791318534653c7b1b91dee606a644fca (diff) |
Filter our RTM_GET messages which are not from us.
Pulled from ospfd. Original author: claudio@
-rw-r--r-- | usr.sbin/ldpd/kroute.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/usr.sbin/ldpd/kroute.c b/usr.sbin/ldpd/kroute.c index ff08824c424..6ee743d5ebb 100644 --- a/usr.sbin/ldpd/kroute.c +++ b/usr.sbin/ldpd/kroute.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kroute.c,v 1.49 2016/05/23 15:16:16 renato Exp $ */ +/* $OpenBSD: kroute.c,v 1.50 2016/05/23 15:38:58 renato Exp $ */ /* * Copyright (c) 2009 Michele Marchetto <michele@openbsd.org> @@ -1287,6 +1287,10 @@ rtmsg_process(char *buf, size_t len) if (rtm->rtm_tableid != 0) continue; + if (rtm->rtm_type == RTM_GET && + rtm->rtm_pid != kr_state.pid) + continue; + if ((sa = rti_info[RTAX_DST]) == NULL) continue; |