Commit 2cb1371
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 5dc4211 commit 2cb1371
1 file changed
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1004 | 1004 | | |
1005 | 1005 | | |
1006 | 1006 | | |
1007 | | - | |
| 1007 | + | |
| 1008 | + | |
| 1009 | + | |
| 1010 | + | |
1008 | 1011 | | |
1009 | 1012 | | |
1010 | 1013 | | |
| |||
0 commit comments