summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--CHANGES3
-rw-r--r--lib/Smokeping/probes/Curl.pm6
2 files changed, 6 insertions, 3 deletions
diff --git a/CHANGES b/CHANGES
index 2c04958..08c0b2b 100644
--- a/CHANGES
+++ b/CHANGES
@@ -1,3 +1,6 @@
+* Curl.pm: don't take '0' for 'true' with the 'ssl2' or 'insecure_ssl' options
+ -- niko, reported by Michael McCarn <mmccarn *sierracorp.us>
+
2005/11/6 -- released version 20051106_trunk
2005/11/5 -- released version 20051105_trunk
diff --git a/lib/Smokeping/probes/Curl.pm b/lib/Smokeping/probes/Curl.pm
index de56758..6e4625a 100644
--- a/lib/Smokeping/probes/Curl.pm
+++ b/lib/Smokeping/probes/Curl.pm
@@ -219,9 +219,9 @@ sub proto_args {
# we take the total time minus the DNS lookup time.
my @args = ("-o", "/dev/null", "-w", "Time: %{time_total} DNS time: %{time_namelookup}\\n");
my $ssl2 = $target->{vars}{ssl2};
- push (@args, "-2") if defined($ssl2);
- my $insecure_ssl = $target->{vars}{insecure_ssl};
- push (@args, '-k') if defined $insecure_ssl;
+ push (@args, "-2") if $ssl2;
+ my $insecure_ssl = $target->{vars}{insecure_ssl};
+ push (@args, '-k') if $insecure_ssl;
return(@args);
}