mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-15 05:18:47 +00:00
* ospf_snmp.c: Don't crash in snmp query if ospf instance doesn't
exist at all. [backport candidate]
This commit is contained in:
parent
1969e4b963
commit
1b63904721
@ -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>
|
2005-03-25 Hasso Tepper <hasso at quagga.net>
|
||||||
|
|
||||||
* ospfd.h: Include log.h, fixes compile with gcc-4.0.
|
* ospfd.h: Include log.h, fixes compile with gcc-4.0.
|
||||||
|
@ -2130,6 +2130,9 @@ ospfNbrLookup (struct variable *v, oid *name, size_t *length,
|
|||||||
|
|
||||||
ospf = ospf_lookup ();
|
ospf = ospf_lookup ();
|
||||||
|
|
||||||
|
if (! ospf)
|
||||||
|
return NULL;
|
||||||
|
|
||||||
if (exact)
|
if (exact)
|
||||||
{
|
{
|
||||||
if (*length != v->namelen + IN_ADDR_SIZE + 1)
|
if (*length != v->namelen + IN_ADDR_SIZE + 1)
|
||||||
|
Loading…
Reference in New Issue
Block a user