diff --git a/keepalived/core/track_process.c b/keepalived/core/track_process.c index c4815654b5..76af36ae0c 100644 --- a/keepalived/core/track_process.c +++ b/keepalived/core/track_process.c @@ -817,7 +817,7 @@ static int set_proc_ev_listen(int nl_sd, bool enable) rc = send(nl_sd, &nlcn_msg, sizeof(nlcn_msg), 0); if (rc == -1) { - log_message(LOG_INFO, "Failed to set/clear process event listen - errno %d - %m", errno); + log_message(LOG_INFO, "Failed to %s process event listen - errno %d - %m", enable ? "set" : "clear", errno); return -1; } diff --git a/lib/parser.c b/lib/parser.c index e43fab117a..f34059fd83 100644 --- a/lib/parser.c +++ b/lib/parser.c @@ -1648,9 +1648,10 @@ have_brace(const char *conf_file) return false; do { - if (*p == '\\') - p++; - else if (*p == '{') + if (*p == '\\') { // Skip a '\' and following character + if (!*++p) // Ensure '\' not last character + return false; + } else if (*p == '{') return true; } while (*++p);