- corosync exposes itself for a self-crash under rare circumstance(bsc#1078412) Added: 0013-logging-Make-blackbox-configurable.patch 0014-logging-Close-before-and-open-blackbox-after-fork.patch Modified: remove unncessary git commit messages 0001-coroapi-Use-size_t-for-private_data_size.patch 0002-fix-ifdown-udp.patch 0005-do-not-convert-empty-uid-gid-to-0.patch 0008-wd-fix-snprintf-warnings.patch 0010-qdevice-mv-free-str-after-port-validation.patch 0011-libcpg-Fix-issue-with-partial-big-packet-assembly.patch 0012-totemudp-u-Drop-truncated-packets-on-receive.patch OBS-URL: https://build.opensuse.org/request/show/571270 OBS-URL: https://build.opensuse.org/package/show/network:ha-clustering:Factory/corosync?expand=0&rev=133
23 lines
693 B
Diff
23 lines
693 B
Diff
diff --git a/qdevices/qdevice-net-instance.c b/qdevices/qdevice-net-instance.c
|
|
index 7adcaa3f..e4b7b04d 100644
|
|
--- a/qdevices/qdevice-net-instance.c
|
|
+++ b/qdevices/qdevice-net-instance.c
|
|
@@ -274,12 +274,12 @@ qdevice_net_instance_init_from_cmap(struct qdevice_instance *instance)
|
|
if (cmap_get_string(cmap_handle, "quorum.device.net.port", &str) == CS_OK) {
|
|
host_port = strtol(str, &ep, 10);
|
|
|
|
- free(str);
|
|
-
|
|
if (host_port <= 0 || host_port > ((uint16_t)~0) || *ep != '\0') {
|
|
qdevice_log(LOG_ERR, "quorum.device.net.port must be in range 0-65535");
|
|
+ free(str);
|
|
goto error_free_host_addr;
|
|
}
|
|
+ free(str);
|
|
} else {
|
|
host_port = QNETD_DEFAULT_HOST_PORT;
|
|
}
|
|
--
|
|
2.13.6
|
|
|