diff options
author | hasso <hasso> | 2005-03-27 15:32:25 +0200 |
---|---|---|
committer | hasso <hasso> | 2005-03-27 15:32:25 +0200 |
commit | 1b63904721aa6ca1aabafe23bcf28c5a2ceb2cd8 (patch) | |
tree | 9a13bfd8caeb9c92f79ec1ecc3666c66da24a2a8 /ospfd/ospf_snmp.c | |
parent | * configure.ac: Add Intel compiler (icc) support. Although Intel (diff) | |
download | frr-1b63904721aa6ca1aabafe23bcf28c5a2ceb2cd8.tar.xz frr-1b63904721aa6ca1aabafe23bcf28c5a2ceb2cd8.zip |
* ospf_snmp.c: Don't crash in snmp query if ospf instance doesn't
exist at all.
[backport candidate]
Diffstat (limited to 'ospfd/ospf_snmp.c')
-rw-r--r-- | ospfd/ospf_snmp.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ospfd/ospf_snmp.c b/ospfd/ospf_snmp.c index 0cf257da4..c1994ab42 100644 --- a/ospfd/ospf_snmp.c +++ b/ospfd/ospf_snmp.c @@ -2130,6 +2130,9 @@ ospfNbrLookup (struct variable *v, oid *name, size_t *length, ospf = ospf_lookup (); + if (! ospf) + return NULL; + if (exact) { if (*length != v->namelen + IN_ADDR_SIZE + 1) |