Commit 33337c7
sign: Set smlen to 0 in case of failure
In mld_sign if a failure is returned from mld_sign_signature, we currently set
the smlen to mlen (mld_sign_signature returns smlen=0, and we increment it by
mlen).
This commit changes it so that in the case of failure smlen=0 is returned.
Signed-off-by: Matthias J. Kannwischer <matthias@kannwischer.eu>1 parent 0b1c536 commit 33337c7
1 file changed
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
964 | 964 | | |
965 | 965 | | |
966 | 966 | | |
967 | | - | |
| 967 | + | |
| 968 | + | |
| 969 | + | |
| 970 | + | |
968 | 971 | | |
969 | 972 | | |
970 | 973 | | |
| |||
0 commit comments