From ba8fc314a93a006fada6af52b5894674dc7879b1 Mon Sep 17 00:00:00 2001 From: tfheen Date: Tue, 24 Jun 2008 10:53:56 +0000 Subject: [PATCH] Fix segfault when reset_cmds is called for cmd_shell git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2788 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- varnish-cache/bin/varnishtest/vtc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/varnish-cache/bin/varnishtest/vtc.c b/varnish-cache/bin/varnishtest/vtc.c index 7b27e5d1..9a1adf89 100644 --- a/varnish-cache/bin/varnishtest/vtc.c +++ b/varnish-cache/bin/varnishtest/vtc.c @@ -220,6 +220,8 @@ cmd_shell(CMD_ARGS) (void)priv; (void)cmd; + if (av == NULL) + return; AN(av[1]); AZ(av[2]); vtc_dump(vl, 4, "shell", av[1]); -- 2.39.5