]> err.no Git - varnish/commitdiff
Fix segfault when reset_cmds is called for cmd_shell
authortfheen <tfheen@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Tue, 24 Jun 2008 10:53:56 +0000 (10:53 +0000)
committertfheen <tfheen@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Tue, 24 Jun 2008 10:53:56 +0000 (10:53 +0000)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2788 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/bin/varnishtest/vtc.c

index 7b27e5d1799b7dedb9938c6d01c77c7e8b0ce213..9a1adf899235c9eb055def3871cacfc171307ddf 100644 (file)
@@ -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]);