summaryrefslogtreecommitdiffabout
path: root/src/betab.c
Side-by-side diff
Diffstat (limited to 'src/betab.c') (more/less context) (ignore whitespace changes)
-rw-r--r--src/betab.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/betab.c b/src/betab.c
index 41c18e7..b583958 100644
--- a/src/betab.c
+++ b/src/betab.c
@@ -223,9 +223,12 @@ create_entry_cb(void *priv, const struct VSC_point *const pt)
int
backendTable_load(netsnmp_cache *cache, void *vmagic)
{
- struct VSM_data *vd = varnish_get_vsm_data();
struct betab_priv bp;
+ struct VSM_data *vd = varnish_get_vsm_data();
+ if (!vd)
+ return SNMP_ERR_NOSUCHNAME;
+
bp.idx = -1;
bp.err = 0;
bp.table = (netsnmp_tdata *) vmagic;

Return to:

Send suggestions and report system problems to the System administrator.