summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rwxr-xr-xexamples/misc/adssearch.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/misc/adssearch.pl b/examples/misc/adssearch.pl
index 70c8f37cd4..943a755a12 100755
--- a/examples/misc/adssearch.pl
+++ b/examples/misc/adssearch.pl
@@ -388,7 +388,7 @@ $server = process_servername($opt_host) ||
# get the base
-$base = $opt_base ||
+$base = defined($opt_base)? $opt_base : "" ||
get_base_from_rootdse($server,$dse);
# get the realm