about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/omemo/omemo.c1
-rw-r--r--src/tools/aesgcm_download.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/omemo/omemo.c b/src/omemo/omemo.c
index b0d2d8aa..560a3473 100644
--- a/src/omemo/omemo.c
+++ b/src/omemo/omemo.c
@@ -1862,6 +1862,7 @@ omemo_parse_aesgcm_url(const char* aesgcm_url,
     }
 
     if (strlen(*fragment) != AESGCM_URL_NONCE_LEN + AESGCM_URL_KEY_LEN) {
+        ret = 1;
         goto out;
     }
 
diff --git a/src/tools/aesgcm_download.c b/src/tools/aesgcm_download.c
index 864da6b7..45aa7b66 100644
--- a/src/tools/aesgcm_download.c
+++ b/src/tools/aesgcm_download.c
@@ -70,6 +70,7 @@ aesgcm_file_get(void* userdata)
     // Convert the aesgcm:// URL to a https:// URL and extract the encoded key
     // and tag stored in the URL fragment.
     if (omemo_parse_aesgcm_url(aesgcm_dl->url, &https_url, &fragment) != 0) {
+        cons_show_error("Download failed: Cannot parse URL '%s'.", aesgcm_dl->url);
         http_print_transfer_update(aesgcm_dl->window, aesgcm_dl->url,
                                    "Download failed: Cannot parse URL '%s'.",
                                    aesgcm_dl->url);