From 7978b43670472a000831f7ff37a6a30771a6ee6f Mon Sep 17 00:00:00 2001 From: Marc Fournier Date: Wed, 8 Nov 2017 21:55:04 +0100 Subject: [PATCH] varnish plugin: fix build against pre varnish 5.2 Older Varnish versions don't know about VSM_Destroy() --- src/varnish.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/varnish.c b/src/varnish.c index 67c5bfd1..69daa980 100644 --- a/src/varnish.c +++ b/src/varnish.c @@ -1390,7 +1390,7 @@ static int varnish_read(user_data_t *ud) /* {{{ */ #endif #if HAVE_VARNISH_V3 || HAVE_VARNISH_V4 if (!ok) { - VSM_Destroy(&vd); + VSM_Delete(vd); ERROR("varnish plugin: Unable to open connection."); return -1; } @@ -1403,7 +1403,7 @@ static int varnish_read(user_data_t *ud) /* {{{ */ #endif #if HAVE_VARNISH_V3 || HAVE_VARNISH_V4 if (!stats) { - VSM_Destroy(&vd); + VSM_Delete(vd); ERROR("varnish plugin: Unable to get statistics."); return -1; } -- 2.30.2