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