commit | 1b63904721aa6ca1aabafe23bcf28c5a2ceb2cd8 | [log] [tgz] |
---|---|---|
author | hasso <hasso> | Sun Mar 27 13:32:25 2005 +0000 |
committer | hasso <hasso> | Sun Mar 27 13:32:25 2005 +0000 |
tree | 9a13bfd8caeb9c92f79ec1ecc3666c66da24a2a8 | |
parent | 1969e4b9631288979f5f7df6dcaddb86ab32950e [diff] [blame] |
* ospf_snmp.c: Don't crash in snmp query if ospf instance doesn't exist at all. [backport candidate]
diff --git a/ospfd/ospf_snmp.c b/ospfd/ospf_snmp.c index 0cf257d..c1994ab 100644 --- a/ospfd/ospf_snmp.c +++ b/ospfd/ospf_snmp.c
@@ -2130,6 +2130,9 @@ ospf = ospf_lookup (); + if (! ospf) + return NULL; + if (exact) { if (*length != v->namelen + IN_ADDR_SIZE + 1)