Commit 9749241
committed
libopendkim: set sig_signalg before feature checks in dkim_siglist_setup()
When opendkim is compiled without Ed25519 support and receives a message
signed with ed25519-sha256, sig_signalg was left at its memset default
(0 = DKIM_SIGN_RSASHA1) because the continue statement in the feature
check jumped past the assignment. The AR header would then incorrectly
report header.a=rsa-sha1 instead of header.a=ed25519-sha256.
Assign sig_signalg immediately when signalg is decoded from the a= tag,
before any continue that might skip the signature.
Fixes #271 parent ecf7d40 commit 9749241
1 file changed
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2121 | 2121 | | |
2122 | 2122 | | |
2123 | 2123 | | |
2124 | | - | |
2125 | | - | |
| 2124 | + | |
| 2125 | + | |
| 2126 | + | |
2126 | 2127 | | |
2127 | 2128 | | |
2128 | 2129 | | |
| |||
2165 | 2166 | | |
2166 | 2167 | | |
2167 | 2168 | | |
2168 | | - | |
2169 | 2169 | | |
2170 | 2170 | | |
2171 | 2171 | | |
| |||
0 commit comments