mirror of
https://github.com/NLnetLabs/unbound.git
synced 2025-12-20 14:53:15 -05:00
Fixup bad free.
git-svn-id: file:///svn/unbound/trunk@1635 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
parent
413d579e58
commit
38ec4f4777
2 changed files with 5 additions and 1 deletions
|
|
@ -1,3 +1,7 @@
|
|||
3 June 2009: Wouter
|
||||
- fixup bad free() when wrongly encoded DSA signature is seen.
|
||||
Reported by Paul Wouters.
|
||||
|
||||
2 June 2009: Wouter
|
||||
- --enable-sha2 option. The draft rsasha256 changed its algorithm
|
||||
numbers too often. Therefore it is more prudent to disable the
|
||||
|
|
|
|||
|
|
@ -1193,7 +1193,7 @@ setup_dsa_sig(unsigned char** sig, unsigned int* len)
|
|||
*sig = NULL;
|
||||
newlen = i2d_DSA_SIG(dsasig, sig);
|
||||
if(newlen < 0) {
|
||||
free(sig);
|
||||
free(*sig);
|
||||
return 0;
|
||||
}
|
||||
*len = (unsigned int)newlen;
|
||||
|
|
|
|||
Loading…
Reference in a new issue