Skip to content
This repository has been archived by the owner on Jul 30, 2021. It is now read-only.

Commit

Permalink
Fix segfault when reset_cmds is called for cmd_shell
Browse files Browse the repository at this point in the history
git-svn-id: http://www.varnish-cache.org/svn/trunk@2788 d4fa192b-c00b-0410-8231-f00ffab90ce4
  • Loading branch information
Tollef Fog Heen committed Jun 24, 2008
1 parent 48d3036 commit 5a34e91
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bin/varnishtest/vtc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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]);
Expand Down

0 comments on commit 5a34e91

Please sign in to comment.