Commit 62a90186 authored by Geoff Simmons's avatar Geoff Simmons

delete() returns false when the backend argument is NULL, for example

when called for a backend that has already been deleted
parent 8eb1be42
......@@ -293,6 +293,8 @@ vmod_delete(VRT_CTX, struct vmod_priv *priv, VCL_BACKEND be)
struct backend *backend;
AN(priv);
if (be == NULL)
return 0;
backend = check_and_get_backend(ctx, be);
if (backend == NULL)
return 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment