diff options
author | Thomas Roessler <roessler@does-not-exist.org> | 1998-09-30 06:40:30 +0000 |
---|---|---|
committer | Thomas Roessler <roessler@does-not-exist.org> | 1998-09-30 06:40:30 +0000 |
commit | 27c8f6346b722ae7bef32769c015af0db305f8ef (patch) | |
tree | d90c39bf5015ffd9324c04c8d3719619c6311902 | |
parent | bdf259032f56ba4a4a91db67fe937744bdf28a56 (diff) |
Don't generate a NULL micalg parameter when getting postponed
messages.
-rw-r--r-- | headers.c | 31 | ||||
-rw-r--r-- | postpone.c | 3 |
2 files changed, 2 insertions, 32 deletions
@@ -206,31 +206,6 @@ void mutt_edit_headers (const char *editor, - - - - - - - - - - - - - - - - - - - - - - - - - #ifdef _PGPPATH else if (strncasecmp ("pgp:", cur->data, 4) == 0) { @@ -240,12 +215,6 @@ void mutt_edit_headers (const char *editor, #endif - - - - - - if (keep) { last = cur; @@ -357,7 +357,8 @@ int mutt_parse_pgp_hdr (char *p, int set_signas) PgpSignAs = safe_strdup(pgp_sign_as); } - if (set_signas || *pgp_sign_micalg) + /* the micalg field must not be empty */ + if (set_signas && *pgp_sign_micalg) { safe_free((void **) &PgpSignMicalg); PgpSignMicalg = safe_strdup(pgp_sign_micalg); |