summaryrefslogtreecommitdiffstats
path: root/ripd/rip_snmp.c
diff options
context:
space:
mode:
authorRenato Westphal <renato@opensourcerouting.org>2019-01-04 22:08:10 +0100
committerRenato Westphal <renato@opensourcerouting.org>2019-01-18 19:15:41 +0100
commit29e897ad333790601929c09904a7e2ff146bcf55 (patch)
tree6638ab92b36e0205cfc17ea298d62e71f7877685 /ripd/rip_snmp.c
parentripd: move "Vrip_passive_nondefault" to the rip structure (diff)
downloadfrr-29e897ad333790601929c09904a7e2ff146bcf55.tar.xz
frr-29e897ad333790601929c09904a7e2ff146bcf55.zip
ripd: move "peer_list" to the rip structure
Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
Diffstat (limited to 'ripd/rip_snmp.c')
-rw-r--r--ripd/rip_snmp.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/ripd/rip_snmp.c b/ripd/rip_snmp.c
index 19367638c..9acc825c0 100644
--- a/ripd/rip_snmp.c
+++ b/ripd/rip_snmp.c
@@ -284,6 +284,9 @@ static struct rip_peer *rip2PeerLookup(struct variable *v, oid name[],
int len;
struct rip_peer *peer;
+ if (!rip)
+ return NULL;
+
if (exact) {
/* Check the length. */
if (*length - v->namelen != sizeof(struct in_addr) + 1)