75e953789d
- corosync-2.4.4 is available now(bsc#1089836) man:fix in corosync-qdevice.8 quorumtool: remove duplicated help message cfg: nodeid should be unsigned int coroparse: Use readdir instead of readdir_r wd: fix snprintf warnings Fix compile errors in qdevice on FreeBSD qdevice: mv free(str) after port validation Fix various typos Fix typo: recomended -> recommended man: support SOURCE_DATE_EPOCH configure: add --with-initconfigdir option Use static case blocks to determine distro flavor Use RuntimeDirectory instead of tmpfiles.d coroparse: Do not convert empty uid, gid to 0 sam: Fix snprintf compiler warnings quorumtool: Use full buffer size in snprintf man: Add note about qdevice parallel cmds start sync: Remove unneeded determine sync code sync: Call sync_init of all services at once corosync.conf: publicize nodelist.node.name totemudp[u]: Drop truncated packets on receive logging: Make blackbox configurable logging: Close before and open blackbox after fork init: Quote subshell result properly blackbox: Quote subshell result properly qdevice: quote certutils scripts properly sam_test_agent: Remove unused assignment qdevice: Fix NULL pointer dereference quorumtool: Don't set our_flags without v_handle OBS-URL: https://build.opensuse.org/request/show/598458 OBS-URL: https://build.opensuse.org/package/show/network:ha-clustering:Factory/corosync?expand=0&rev=143
26 lines
933 B
Diff
26 lines
933 B
Diff
From fab3ef5e63e1ad61d03b1230e8f900bf1279cc81 Mon Sep 17 00:00:00 2001
|
|
From: Bin Liu <bliu@suse.com>
|
|
Date: Thu, 19 Apr 2018 16:52:27 +0800
|
|
Subject: [PATCH] qdevice-net-instance.c: optarg should be str
|
|
|
|
---
|
|
qdevices/qdevice-net-instance.c | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/qdevices/qdevice-net-instance.c b/qdevices/qdevice-net-instance.c
|
|
index 87cf3ee0..a3231cd5 100644
|
|
--- a/qdevices/qdevice-net-instance.c
|
|
+++ b/qdevices/qdevice-net-instance.c
|
|
@@ -273,7 +273,7 @@ qdevice_net_instance_init_from_cmap(struct qdevice_instance *instance)
|
|
host_addr = str;
|
|
|
|
if (cmap_get_string(cmap_handle, "quorum.device.net.port", &str) == CS_OK) {
|
|
- if (utils_strtonum(optarg, 1, UINT16_MAX, &lli) == -1) {
|
|
+ if (utils_strtonum(str, 1, UINT16_MAX, &lli) == -1) {
|
|
qdevice_log(LOG_ERR, "quorum.device.net.port must be in range 1-%u", UINT16_MAX);
|
|
free(str);
|
|
goto error_free_host_addr;
|
|
--
|
|
2.13.6
|
|
|