Use https (port 5986) when cainfo is set.

This fixes the default port setting to match wsmc_create() call.

(upstream issue 3257661, Zoltan Micskei)
diff --git a/ChangeLog b/ChangeLog
index ef9d133..1365722 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+
+  - fix the default port setting to match wsmc_create() call. Use
+    https (port 5986) when cainfo is set.
+
 Version 2.2.6
   - fix segfault in output_file handling (Chris Poblete)
 
diff --git a/src/wsman.c b/src/wsman.c
index 75f0c4a..4c34e78 100644
--- a/src/wsman.c
+++ b/src/wsman.c
@@ -395,7 +395,7 @@
 
 	// set default options
 	if (server_port == 0) {
-		server_port = cainfo ? 5985 : 5986;
+		server_port = cainfo ? 5986 : 5985;
 	}
 	if (url_path == NULL) {
 		if (strcmp(argv[1], "anonid") == 0)