Skip to content

Commit

Permalink
Fix: missing return in handle_get_credentials
Browse files Browse the repository at this point in the history
  • Loading branch information
mattmundell committed May 13, 2024
1 parent caabd78 commit 0dce30e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/gmp.c
Original file line number Diff line number Diff line change
Expand Up @@ -12200,11 +12200,15 @@ handle_get_credentials (gmp_parser_t *gmp_parser, GError **error)
else
format = CREDENTIAL_FORMAT_NONE;

if (format == CREDENTIAL_FORMAT_ERROR)
if (format == CREDENTIAL_FORMAT_ERROR) {
SEND_TO_CLIENT_OR_FAIL
(XML_ERROR_SYNTAX ("get_credentials",
"Format attribute should"
" be 'key', 'rpm', 'deb', 'exe' or 'pem'"));
get_credentials_data_reset (get_credentials_data);
set_client_state (CLIENT_AUTHENTIC);
return;
}

INIT_GET (credential, Credential);

Expand Down

0 comments on commit 0dce30e

Please sign in to comment.