Merge pull request #161 from likunyur/lky

sudoers/cvtsudoers: Remove the repeated ';' from code
This commit is contained in:
Todd C. Miller
2022-07-04 09:00:58 -06:00
committed by GitHub
2 changed files with 3 additions and 3 deletions

View File

@@ -691,7 +691,7 @@ cvtsudoers_parse_filter(char *expression)
/* Parse keyword = value */ /* Parse keyword = value */
keyword = cp; keyword = cp;
if ((cp = strchr(cp, '=')) == NULL) { if ((cp = strchr(cp, '=')) == NULL) {
sudo_warnx(U_("invalid filter: %s"), keyword);; sudo_warnx(U_("invalid filter: %s"), keyword);
free(s); free(s);
debug_return_bool(false); debug_return_bool(false);
} }
@@ -707,7 +707,7 @@ cvtsudoers_parse_filter(char *expression)
} else if (strcmp(keyword, "cmnd") == 0 || strcmp(keyword, "cmd") == 0) { } else if (strcmp(keyword, "cmnd") == 0 || strcmp(keyword, "cmd") == 0) {
STAILQ_INSERT_TAIL(&filters->cmnds, s, entries); STAILQ_INSERT_TAIL(&filters->cmnds, s, entries);
} else { } else {
sudo_warnx(U_("invalid filter: %s"), keyword);; sudo_warnx(U_("invalid filter: %s"), keyword);
free(s); free(s);
debug_return_bool(false); debug_return_bool(false);
} }

View File

@@ -98,7 +98,7 @@ send_client_hello(int sock)
/* Setup client hello. */ /* Setup client hello. */
hello.pid = getpid(); hello.pid = getpid();
msg.type_case = INTERCEPT_REQUEST__TYPE_HELLO;; msg.type_case = INTERCEPT_REQUEST__TYPE_HELLO;
msg.u.hello = &hello; msg.u.hello = &hello;
len = intercept_request__get_packed_size(&msg); len = intercept_request__get_packed_size(&msg);