- Add support for OpenSSL 1.1.0 library, allow TLSv1 and higher (not just TLSv1) and report TLS version used in debug mode level 3 and higher (boo#1069988, openssl-1_1.patch) - Fix missing pointer dereference in upssched (nut-upssched.patch) - Support for allowfrom parameter was removed in version 2.4.0 (nut-preconfig.patch) OBS-URL: https://build.opensuse.org/request/show/547147 OBS-URL: https://build.opensuse.org/package/show/hardware/nut?expand=0&rev=74
14 lines
385 B
Diff
14 lines
385 B
Diff
diff --git a/clients/upssched.c b/clients/upssched.c
|
|
index 97b3ed42..3fdf118e 100644
|
|
--- a/clients/upssched.c
|
|
+++ b/clients/upssched.c
|
|
@@ -794,7 +794,7 @@ static void parse_at(const char *ntype, const char *un, const char *cmd,
|
|
}
|
|
|
|
if (!strcmp(cmd, "EXECUTE")) {
|
|
- if (ca1 == '\0') {
|
|
+ if (*ca1 == '\0') {
|
|
upslogx(LOG_ERR, "Empty EXECUTE command argument");
|
|
return;
|
|
}
|