summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndy Fiddaman <andy@omniosce.org>2020-02-18 12:27:00 +0000
committerGitHub <noreply@github.com>2020-02-18 12:27:00 +0000
commitcf1763c352b1bdac07c225b66e1ca15806929e56 (patch)
tree020cffdb2e1e50258b0de59281fe3d91a330aae4
parentb9cbfa84c1327c3e1b735def7abedd31c6bfe6cf (diff)
downloadillumos-joyent-cf1763c352b1bdac07c225b66e1ca15806929e56.tar.gz
OS-8111 dladm create-overlay crashes if search plugin is not provided (#259)
Reviewed by: John Levon <john.levon@joyent.com> Approved by: Tim Foster <tim.foster@joyent.com>
-rw-r--r--usr/src/cmd/dladm/dladm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/src/cmd/dladm/dladm.c b/usr/src/cmd/dladm/dladm.c
index 2de38a993c..92f3bfb665 100644
--- a/usr/src/cmd/dladm/dladm.c
+++ b/usr/src/cmd/dladm/dladm.c
@@ -9936,7 +9936,7 @@ do_create_overlay(int argc, char *argv[], const char *use)
if (encap == NULL)
die("missing required encapsulation plugin");
- if (encap == NULL)
+ if (search == NULL)
die("missing required search plugin");
if (optind != (argc - 1))