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 authored and a-h-abdelsalam committed May 21, 2024
1 parent 821d9d8 commit 0fdd842
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions src/gmp.c
Original file line number Diff line number Diff line change
Expand Up @@ -12201,10 +12201,15 @@ handle_get_credentials (gmp_parser_t *gmp_parser, GError **error)
format = CREDENTIAL_FORMAT_NONE;

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'"));
{
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 0fdd842

Please sign in to comment.