]> git.ipfire.org Git - thirdparty/squid.git/commit
squidpurge: display friendly errors on missing command line options
authorAmos Jeffries <squid3@treenet.co.nz>
Wed, 16 Jan 2013 11:22:25 +0000 (00:22 +1300)
committerAmos Jeffries <squid3@treenet.co.nz>
Wed, 16 Jan 2013 11:22:25 +0000 (00:22 +1300)
commitb2d7d4beac04fd6d0ec2e5bd5ba03cb68943d6ed
treef9f0bc67e3f56a22fa75ee6cb739cba1d04d876c
parent37abc16534be1f62328f46fee3d7afc2b2666cf4
squidpurge: display friendly errors on missing command line options

Currently the tool will crash with a segmentation fault if any one of
several command switches which are expected to have a mandatory argument
are in fact followed by nothing.
 Detect these cases and display a message about what is missing.

 Detected by Coverity Scan. Issue 740378
tools/purge/purge.cc