Skip to content

Commit

Permalink
Update comm function names in shadow backend
Browse files Browse the repository at this point in the history
  • Loading branch information
mgunyho committed Jan 5, 2025
1 parent e0775f4 commit 7b8ef41
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions shadow.c
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ void run_pw_backend_child(void) {
assert(encpw != NULL);
while (1) {
char *buf;
ssize_t size = read_comm_request(&buf);
ssize_t size = read_comm_prompt_response(&buf);
if (size < 0) {
exit(EXIT_FAILURE);
} else if (size == 0) {
Expand All @@ -81,7 +81,7 @@ void run_pw_backend_child(void) {
}
bool success = strcmp(c, encpw) == 0;

if (!write_comm_reply(success)) {
if (write_comm_auth_result_from_backend(success) < 0) {
exit(EXIT_FAILURE);
}

Expand Down

0 comments on commit 7b8ef41

Please sign in to comment.