Fixup bad free.

git-svn-id: file:///svn/unbound/trunk@1635 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
Wouter Wijngaards 2009-06-03 07:57:19 +00:00
parent 413d579e58
commit 38ec4f4777
2 changed files with 5 additions and 1 deletions

View file

@ -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 2 June 2009: Wouter
- --enable-sha2 option. The draft rsasha256 changed its algorithm - --enable-sha2 option. The draft rsasha256 changed its algorithm
numbers too often. Therefore it is more prudent to disable the numbers too often. Therefore it is more prudent to disable the

View file

@ -1193,7 +1193,7 @@ setup_dsa_sig(unsigned char** sig, unsigned int* len)
*sig = NULL; *sig = NULL;
newlen = i2d_DSA_SIG(dsasig, sig); newlen = i2d_DSA_SIG(dsasig, sig);
if(newlen < 0) { if(newlen < 0) {
free(sig); free(*sig);
return 0; return 0;
} }
*len = (unsigned int)newlen; *len = (unsigned int)newlen;