* ospf_snmp.c: Don't crash in snmp query if ospf instance doesn't

exist at all.

	[backport candidate]
This commit is contained in:
hasso 2005-03-27 13:32:25 +00:00
parent 1969e4b963
commit 1b63904721
2 changed files with 8 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2005-03-27 Hasso Tepper <hasso at quagga.net>
* ospf_snmp.c: Don't crash in snmp query if ospf instance doesn't
exist at all.
2005-03-25 Hasso Tepper <hasso at quagga.net>
* ospfd.h: Include log.h, fixes compile with gcc-4.0.

View File

@ -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)