oweals/openssl.git
21 years agoAdd the possibility to build without the ENGINE framework.
Richard Levitte [Thu, 30 Jan 2003 17:37:49 +0000 (17:37 +0000)]
Add the possibility to build without the ENGINE framework.
PR: 287

21 years agoSmall typo, OENSSL should really be spelled OPENSSL.
Richard Levitte [Thu, 30 Jan 2003 11:08:47 +0000 (11:08 +0000)]
Small typo, OENSSL should really be spelled OPENSSL.
PR: 476

21 years agoFix a memory leak in SSL.
Richard Levitte [Thu, 30 Jan 2003 11:00:37 +0000 (11:00 +0000)]
Fix a memory leak in SSL.
PR: 477

21 years agocert_sk isn't always allocated, so freeing it may cause a crash.
Richard Levitte [Thu, 30 Jan 2003 10:27:47 +0000 (10:27 +0000)]
cert_sk isn't always allocated, so freeing it may cause a crash.
PR: 481

21 years agoDVCS (see RFC 3029) was missing among the possible purposes.
Richard Levitte [Wed, 29 Jan 2003 15:06:38 +0000 (15:06 +0000)]
DVCS (see RFC 3029) was missing among the possible purposes.
Notified privately to me by Peter Sylvester <Peter.Sylvester@EdelWeb.fr>,
one of the authors of said RFC

21 years agoCorrect EVP_SealInit() documentation, iv is an output
Dr. Stephen Henson [Sun, 26 Jan 2003 13:39:24 +0000 (13:39 +0000)]
Correct EVP_SealInit() documentation, iv is an output
parameter.

21 years agoconsistency
Bodo Möller [Fri, 24 Jan 2003 22:27:00 +0000 (22:27 +0000)]
consistency

21 years agoProvide "dummy" &main::picmeup even in Windows perlasm modules.
Andy Polyakov [Fri, 24 Jan 2003 09:38:18 +0000 (09:38 +0000)]
Provide "dummy" &main::picmeup even in Windows perlasm modules.

21 years agoCheck return value of gmtime() and add error codes
Dr. Stephen Henson [Fri, 24 Jan 2003 00:42:50 +0000 (00:42 +0000)]
Check return value of gmtime() and add error codes
where it fails in ASN1_TIME_set().

Clear error queue in req.c if *_min or *_max is absent.

21 years agoWorkaround for lame compiler bug introduced in "CPU pack" for MSVC6SP5.
Andy Polyakov [Thu, 23 Jan 2003 10:05:59 +0000 (10:05 +0000)]
Workaround for lame compiler bug introduced in "CPU pack" for MSVC6SP5.

21 years agoThe patch speaks for itself.
Andy Polyakov [Thu, 23 Jan 2003 09:51:55 +0000 (09:51 +0000)]
The patch speaks for itself.

21 years agoMissing 0 broke FreeBSD build.
Richard Levitte [Thu, 23 Jan 2003 08:10:07 +0000 (08:10 +0000)]
Missing 0 broke FreeBSD build.
PR: 470

21 years agoSuggestion was to change ${MACHINE} to i586 in lines in question. Well,
Andy Polyakov [Sun, 19 Jan 2003 21:45:52 +0000 (21:45 +0000)]
Suggestion was to change ${MACHINE} to i586 in lines in question. Well,
"whatever" doesn't the same (avoids 386 being passed to ./Configure),
consistent with other elder SCO targets and denotes that we probably
shouldn't care much about every out-of-date platform.

21 years agoThis is an *initial* tune-up. This update puts Itanium2 back on par with
Andy Polyakov [Sun, 19 Jan 2003 21:31:20 +0000 (21:31 +0000)]
This is an *initial* tune-up. This update puts Itanium2 back on par with
Itanium. I mean if overall performance improvement over C version was X
for Itanium, it's now X even for Itanium2.

21 years agoOops! Missed closing quote... Didn't have time to verify before a snapshot
Andy Polyakov [Sun, 19 Jan 2003 11:39:56 +0000 (11:39 +0000)]
Oops! Missed closing quote... Didn't have time to verify before a snapshot
was cut...

21 years agoSCO target missed .so definition.
Andy Polyakov [Sat, 18 Jan 2003 21:59:19 +0000 (21:59 +0000)]
SCO target missed .so definition.

21 years ago-lresolv is not present on SCO Unix, RT#460.
Andy Polyakov [Sat, 18 Jan 2003 18:11:10 +0000 (18:11 +0000)]
-lresolv is not present on SCO Unix, RT#460.

21 years agoCaldera/SCO targets erroneously limit themselves to 386. See RT#464.
Andy Polyakov [Sat, 18 Jan 2003 14:59:19 +0000 (14:59 +0000)]
Caldera/SCO targets erroneously limit themselves to 386. See RT#464.

21 years agoFix for AIX shared build, see RT#463.
Andy Polyakov [Sat, 18 Jan 2003 13:10:23 +0000 (13:10 +0000)]
Fix for AIX shared build, see RT#463.

21 years agoEVP_DecryptInit() should call EVP_CipherInit() not EVP_CipherInit_ex().
Dr. Stephen Henson [Fri, 17 Jan 2003 00:46:08 +0000 (00:46 +0000)]
EVP_DecryptInit() should call EVP_CipherInit() not EVP_CipherInit_ex().

21 years agoA few more files to ignore
Richard Levitte [Thu, 16 Jan 2003 21:33:06 +0000 (21:33 +0000)]
A few more files to ignore

21 years agoFreeBSD has /dev/crypto as well.
Richard Levitte [Thu, 16 Jan 2003 18:29:34 +0000 (18:29 +0000)]
FreeBSD has /dev/crypto as well.
PR: 462

21 years agoArmor against systems without ranlib...
Lutz Jänicke [Thu, 16 Jan 2003 17:21:15 +0000 (17:21 +0000)]
Armor against systems without ranlib...
Submitted by: Thierry Lelegard <thierry.lelegard@canal-plus.fr>

PR: 461

21 years agoncr-scde target needs -lc89 for strcasecmp() and ftime() (Tim Rice, Martin
Lutz Jänicke [Thu, 16 Jan 2003 07:54:12 +0000 (07:54 +0000)]
ncr-scde target needs -lc89 for strcasecmp() and ftime() (Tim Rice, Martin
Megele).

PR: 450

21 years agoFix possible NULL dereferencial.
Richard Levitte [Thu, 16 Jan 2003 06:00:59 +0000 (06:00 +0000)]
Fix possible NULL dereferencial.
Notified by Verdon Walker <VWalker@novell.com>

21 years agoAdd verbosity
Richard Levitte [Wed, 15 Jan 2003 17:23:28 +0000 (17:23 +0000)]
Add verbosity

21 years agomake update
Richard Levitte [Wed, 15 Jan 2003 17:19:38 +0000 (17:19 +0000)]
make update

21 years agoFix initialization sequence to prevent freeing of unitialized objects.
Lutz Jänicke [Wed, 15 Jan 2003 14:56:47 +0000 (14:56 +0000)]
Fix initialization sequence to prevent freeing of unitialized objects.
Submitted by: Nils Larsch <nla@trustcenter.de>

PR: 459

21 years agoReally fix SSLv2 session ID handling
Lutz Jänicke [Wed, 15 Jan 2003 09:48:29 +0000 (09:48 +0000)]
Really fix SSLv2 session ID handling

PR: 377

21 years agoSet EXPORT_VAR_AS_FN for BC-32 to work around a compiler bug,
Dr. Stephen Henson [Tue, 14 Jan 2003 20:52:58 +0000 (20:52 +0000)]
Set EXPORT_VAR_AS_FN for BC-32 to work around a compiler bug,

21 years agoExtend the HOWTO on creating certificates, and add a HOWTO in creating keys.
Richard Levitte [Tue, 14 Jan 2003 15:46:36 +0000 (15:46 +0000)]
Extend the HOWTO on creating certificates, and add a HOWTO in creating keys.
PR: 422

21 years agoThis commit was manufactured by cvs2svn to create branch
cvs2svn [Tue, 14 Jan 2003 15:42:19 +0000 (15:42 +0000)]
This commit was manufactured by cvs2svn to create branch
'OpenSSL_0_9_7-stable'.

21 years agoExtend the HOWTO on creating certificates, and add a HOWTO in creating keys.
Richard Levitte [Tue, 14 Jan 2003 15:42:16 +0000 (15:42 +0000)]
Extend the HOWTO on creating certificates, and add a HOWTO in creating keys.
PR: 422

21 years agoDocument hpux-parisc2-cc problems, probably due to optimizer bug.
Lutz Jänicke [Tue, 14 Jan 2003 13:57:06 +0000 (13:57 +0000)]
Document hpux-parisc2-cc problems, probably due to optimizer bug.

PR: 426

21 years agoCorrect an example that has a few typos.
Richard Levitte [Tue, 14 Jan 2003 13:56:41 +0000 (13:56 +0000)]
Correct an example that has a few typos.
PR: 458

21 years agoCorrect an example that has a few typos.
Richard Levitte [Tue, 14 Jan 2003 13:56:38 +0000 (13:56 +0000)]
Correct an example that has a few typos.
PR: 458

21 years agoDocument hpux-parisc2-cc problems, probably due to optimizer bug.
Lutz Jänicke [Tue, 14 Jan 2003 13:56:26 +0000 (13:56 +0000)]
Document hpux-parisc2-cc problems, probably due to optimizer bug.

PR: 426

21 years agoMerge from 0.9.7-stable.
Richard Levitte [Mon, 13 Jan 2003 17:16:25 +0000 (17:16 +0000)]
Merge from 0.9.7-stable.

21 years agoNote IA-32 assembler support enhancements in CHANGES.
Andy Polyakov [Mon, 13 Jan 2003 16:39:41 +0000 (16:39 +0000)]
Note IA-32 assembler support enhancements in CHANGES.

21 years agoMinor FAQ update.
Andy Polyakov [Mon, 13 Jan 2003 16:34:56 +0000 (16:34 +0000)]
Minor FAQ update.

21 years agoMinor FAQ update
Andy Polyakov [Mon, 13 Jan 2003 16:34:05 +0000 (16:34 +0000)]
Minor FAQ update

21 years ago"!Cname surname" has now become redundant ...
Bodo Möller [Mon, 13 Jan 2003 15:57:33 +0000 (15:57 +0000)]
"!Cname surname" has now become redundant ...

21 years ago"!Cname surname" has now become redundant ...
Bodo Möller [Mon, 13 Jan 2003 15:55:52 +0000 (15:55 +0000)]
"!Cname surname" has now become redundant ...

21 years agoundo part of a recent change: it's "surname", not "surName"
Bodo Möller [Mon, 13 Jan 2003 15:52:04 +0000 (15:52 +0000)]
undo part of a recent change: it's "surname", not "surName"
(see X.520 aka ISO/IEC 9594-6)

21 years agoundo part of a recent change: it's "surname", not "surName"
Bodo Möller [Mon, 13 Jan 2003 15:51:33 +0000 (15:51 +0000)]
undo part of a recent change: it's "surname", not "surName"
(see X.520 aka ISO/IEC 9594-6)

21 years agoMake sure not to declare a clashing read() for DJGPP.
Richard Levitte [Mon, 13 Jan 2003 15:35:27 +0000 (15:35 +0000)]
Make sure not to declare a clashing read() for DJGPP.
PR: 440

21 years agoMake sure not to declare a clashing read() for DJGPP.
Richard Levitte [Mon, 13 Jan 2003 15:35:22 +0000 (15:35 +0000)]
Make sure not to declare a clashing read() for DJGPP.
PR: 440

21 years agoDJGPP doesn't have DLLs, so skip adding to %PATH% in that environment.
Richard Levitte [Mon, 13 Jan 2003 15:16:48 +0000 (15:16 +0000)]
DJGPP doesn't have DLLs, so skip adding to %PATH% in that environment.
PR: 453

21 years agoDJGPP doesn't have DLLs, so skip adding to %PATH% in that environment.
Richard Levitte [Mon, 13 Jan 2003 15:16:40 +0000 (15:16 +0000)]
DJGPP doesn't have DLLs, so skip adding to %PATH% in that environment.
PR: 453

21 years agoadd something to the '$no_shared_warn' text
Bodo Möller [Mon, 13 Jan 2003 14:59:07 +0000 (14:59 +0000)]
add something to the '$no_shared_warn' text

21 years agoadd something to the '$no_shared_warn' text
Bodo Möller [Mon, 13 Jan 2003 14:58:49 +0000 (14:58 +0000)]
add something to the '$no_shared_warn' text

21 years agoCorrect a misleading comment.
Richard Levitte [Mon, 13 Jan 2003 14:53:46 +0000 (14:53 +0000)]
Correct a misleading comment.
PR: 456

21 years agoCorrect a misleading comment.
Richard Levitte [Mon, 13 Jan 2003 14:53:43 +0000 (14:53 +0000)]
Correct a misleading comment.
PR: 456

21 years agoRevert: the names of the cygwin distribution will not be named openssl2-*.
Richard Levitte [Mon, 13 Jan 2003 14:47:55 +0000 (14:47 +0000)]
Revert: the names of the cygwin distribution will not be named openssl2-*.
Requested by Corinna Vinschen <vinschen@redhat.com>

21 years agoRevert: the names of the cygwin distribution will not be named openssl2-*.
Richard Levitte [Mon, 13 Jan 2003 14:47:52 +0000 (14:47 +0000)]
Revert: the names of the cygwin distribution will not be named openssl2-*.
Requested by Corinna Vinschen <vinschen@redhat.com>

21 years agoUI_UTIL_read_pw() misinterpreted the values returned from UI functions.
Richard Levitte [Mon, 13 Jan 2003 14:17:47 +0000 (14:17 +0000)]
UI_UTIL_read_pw() misinterpreted the values returned from UI functions.
PR: 456

21 years agoUI_UTIL_read_pw() misinterpreted the values returned from UI functions.
Richard Levitte [Mon, 13 Jan 2003 14:17:43 +0000 (14:17 +0000)]
UI_UTIL_read_pw() misinterpreted the values returned from UI functions.
PR: 456

21 years agodocument BN_GENCB API by adding an example
Bodo Möller [Mon, 13 Jan 2003 13:44:20 +0000 (13:44 +0000)]
document BN_GENCB API by adding an example

21 years agoTypo.
Bodo Möller [Mon, 13 Jan 2003 13:18:22 +0000 (13:18 +0000)]
Typo.

NB: This and other manual pages should be updated for the new
BN_GENCB interface.

21 years agotypo
Bodo Möller [Mon, 13 Jan 2003 13:16:46 +0000 (13:16 +0000)]
typo

21 years agotty_in will never be stderr, so it will always be closed, which means stdin
Richard Levitte [Mon, 13 Jan 2003 13:15:19 +0000 (13:15 +0000)]
tty_in will never be stderr, so it will always be closed, which means stdin
might get closed...
Reported by Mark Daniel <Mark.Daniel@wasd.vsm.com.au>

21 years agotty_in will never be stderr, so it will always be closed, which means stdin
Richard Levitte [Mon, 13 Jan 2003 13:15:16 +0000 (13:15 +0000)]
tty_in will never be stderr, so it will always be closed, which means stdin
might get closed...
Reported by Mark Daniel <Mark.Daniel@wasd.vsm.com.au>

21 years agotypo
Bodo Möller [Mon, 13 Jan 2003 12:52:33 +0000 (12:52 +0000)]
typo

21 years agoAddenum to IA-32 assembler support enhancements from HEAD branch.
Andy Polyakov [Sun, 12 Jan 2003 22:40:09 +0000 (22:40 +0000)]
Addenum to IA-32 assembler support enhancements from HEAD branch.

21 years agoOpenBSD FAQ update. Apparently gas from binutils-2.x makes it impossible to
Andy Polyakov [Sun, 12 Jan 2003 21:40:15 +0000 (21:40 +0000)]
OpenBSD FAQ update. Apparently gas from binutils-2.x makes it impossible to
use gcc -fPIC ... on OpenBSD-i386. Alternative solution is provided.

21 years agoOpenBSD FAQ update. Apparently gas from binutils-2.x makes it impossible to
Andy Polyakov [Sun, 12 Jan 2003 21:39:13 +0000 (21:39 +0000)]
OpenBSD FAQ update. Apparently gas from binutils-2.x makes it impossible to
use gcc -fPIC ... on OpenBSD-i386. Alternative solution is provided.

21 years agoIA-32 assembler support enhancements from HEAD branch: unified ELF,
Andy Polyakov [Sun, 12 Jan 2003 16:35:30 +0000 (16:35 +0000)]
IA-32 assembler support enhancements from HEAD branch: unified ELF,
support for SCO/Caldera targets and for Cygwin shared build.

21 years agoJust an extra comment.
Andy Polyakov [Sun, 12 Jan 2003 15:50:59 +0000 (15:50 +0000)]
Just an extra comment.

21 years agoAdd better support for FreeBSD on non-x86 machines.
Richard Levitte [Sun, 12 Jan 2003 04:43:52 +0000 (04:43 +0000)]
Add better support for FreeBSD on non-x86 machines.
Add specific support for FreeBSD on sparc64.
PR: 427

21 years agoAdd better support for FreeBSD on non-x86 machines.
Richard Levitte [Sun, 12 Jan 2003 04:43:44 +0000 (04:43 +0000)]
Add better support for FreeBSD on non-x86 machines.
Add specific support for FreeBSD on sparc64.
PR: 427

21 years agoIf the user said 'shared' and we haven't included support for shared libraries,
Richard Levitte [Sat, 11 Jan 2003 11:40:43 +0000 (11:40 +0000)]
If the user said 'shared' and we haven't included support for shared libraries,
warn him or her.
Reminder by Andrew Marlow <apm35@student.open.ac.uk>

21 years agoIf the user said 'shared' and we haven't included support for shared libraries,
Richard Levitte [Sat, 11 Jan 2003 11:40:39 +0000 (11:40 +0000)]
If the user said 'shared' and we haven't included support for shared libraries,
warn him or her.
Reminder by Andrew Marlow <apm35@student.open.ac.uk>

21 years agoDouble the dollars that are intended for the command line.
Richard Levitte [Fri, 10 Jan 2003 16:32:36 +0000 (16:32 +0000)]
Double the dollars that are intended for the command line.
PR: 423

21 years agoDouble the dollars that are intended for the command line.
Richard Levitte [Fri, 10 Jan 2003 16:32:32 +0000 (16:32 +0000)]
Double the dollars that are intended for the command line.
PR: 423

21 years agoAdd documentation on how to handle the shared libaries.
Richard Levitte [Fri, 10 Jan 2003 16:14:37 +0000 (16:14 +0000)]
Add documentation on how to handle the shared libaries.
PR: 423

21 years agoThis commit was manufactured by cvs2svn to create branch
cvs2svn [Fri, 10 Jan 2003 16:14:35 +0000 (16:14 +0000)]
This commit was manufactured by cvs2svn to create branch
'OpenSSL_0_9_7-stable'.

21 years agoAdd documentation on how to handle the shared libaries.
Richard Levitte [Fri, 10 Jan 2003 16:14:32 +0000 (16:14 +0000)]
Add documentation on how to handle the shared libaries.
PR: 423

21 years agoName the flag file correctly
Richard Levitte [Fri, 10 Jan 2003 16:04:07 +0000 (16:04 +0000)]
Name the flag file correctly

21 years agoCFLAG, not CFLAGS
Richard Levitte [Fri, 10 Jan 2003 11:30:47 +0000 (11:30 +0000)]
CFLAG, not CFLAGS

21 years agoCFLAG, not CFLAGS
Richard Levitte [Fri, 10 Jan 2003 11:30:44 +0000 (11:30 +0000)]
CFLAG, not CFLAGS

21 years agoIt's recommended to do 'make clean' after having prepared a new build tree.
Richard Levitte [Fri, 10 Jan 2003 11:00:52 +0000 (11:00 +0000)]
It's recommended to do 'make clean' after having prepared a new build tree.
PR: 437

21 years agoIt's recommended to do 'make clean' after having prepared a new build tree.
Richard Levitte [Fri, 10 Jan 2003 11:00:50 +0000 (11:00 +0000)]
It's recommended to do 'make clean' after having prepared a new build tree.
PR: 437

21 years agoWhen preparing a separate build tree, don't make softlinks to softlinks.
Richard Levitte [Fri, 10 Jan 2003 10:56:21 +0000 (10:56 +0000)]
When preparing a separate build tree, don't make softlinks to softlinks.
Add instructions in INSTALL, for easy access.
PR: 437

21 years agoWhen preparing a separate build tree, don't make softlinks to softlinks.
Richard Levitte [Fri, 10 Jan 2003 10:56:14 +0000 (10:56 +0000)]
When preparing a separate build tree, don't make softlinks to softlinks.
Add instructions in INSTALL, for easy access.
PR: 437

21 years agoForce the removal.
Richard Levitte [Fri, 10 Jan 2003 10:55:01 +0000 (10:55 +0000)]
Force the removal.
PR: 437

21 years agoForce the removal.
Richard Levitte [Fri, 10 Jan 2003 10:54:59 +0000 (10:54 +0000)]
Force the removal.
PR: 437

21 years agoCertain files must be removed before generating them, in case they point
Richard Levitte [Fri, 10 Jan 2003 10:54:21 +0000 (10:54 +0000)]
Certain files must be removed before generating them, in case they point
into a read-only source tree.
PR: 437

21 years agoCertain files must be removed before generating them, in case they point
Richard Levitte [Fri, 10 Jan 2003 10:54:18 +0000 (10:54 +0000)]
Certain files must be removed before generating them, in case they point
into a read-only source tree.
PR: 437

21 years agoAvoid unnecessary pollution of object module name table. Cygwin shared
Andy Polyakov [Fri, 10 Jan 2003 10:16:39 +0000 (10:16 +0000)]
Avoid unnecessary pollution of object module name table. Cygwin shared
build workaround (DJGPP swallows it too). One probably should do same
as with ELF calling it COFF, but I'm very short in COFF platforms, so
I just go for easy ad-hoc solution. I'll take care of merge to 0.9.7
later.

21 years agoMake sure everything that may be freed is allocated or initiated.
Richard Levitte [Fri, 10 Jan 2003 08:59:48 +0000 (08:59 +0000)]
Make sure everything that may be freed is allocated or initiated.
PR: 446

21 years agoMake sure everything that may be freed is allocated or initiated.
Richard Levitte [Fri, 10 Jan 2003 08:59:46 +0000 (08:59 +0000)]
Make sure everything that may be freed is allocated or initiated.
PR: 446

21 years agoTypos corrected.
Richard Levitte [Fri, 10 Jan 2003 08:54:04 +0000 (08:54 +0000)]
Typos corrected.
PR: 445

21 years agoTypos corrected.
Richard Levitte [Fri, 10 Jan 2003 08:54:01 +0000 (08:54 +0000)]
Typos corrected.
PR: 445

21 years agoTypo.
Dr. Stephen Henson [Thu, 9 Jan 2003 16:54:21 +0000 (16:54 +0000)]
Typo.

21 years agoOops, left debugging malloc include file in...
Dr. Stephen Henson [Thu, 9 Jan 2003 16:53:26 +0000 (16:53 +0000)]
Oops, left debugging malloc include file in...

21 years agoThe naming scheme wasn't quite correct for Cygwin
Richard Levitte [Thu, 9 Jan 2003 16:15:48 +0000 (16:15 +0000)]
The naming scheme wasn't quite correct for Cygwin

21 years agoThe naming scheme wasn't quite correct for Cygwin
Richard Levitte [Thu, 9 Jan 2003 16:15:46 +0000 (16:15 +0000)]
The naming scheme wasn't quite correct for Cygwin

21 years agoAt least OpenBSD implements PIC in the same way ELF does.
Andy Polyakov [Thu, 9 Jan 2003 16:06:09 +0000 (16:06 +0000)]
At least OpenBSD implements PIC in the same way ELF does.

21 years agogcc wants character constants to be correct. Before this change, the
Richard Levitte [Thu, 9 Jan 2003 13:25:14 +0000 (13:25 +0000)]
gcc wants character constants to be correct.  Before this change, the
following would happen on Solaris:

  m4 -B 8192 asm/des_enc.m4 > asm/des_enc-sparc.S
  gcc -DOPENSSL_SYSNAME_ULTRASPARC -DOPENSSL_NO_STATIC_ENGINE -fPIC -DOPENSSL_PIC -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -DOPENSSL_NO_KRB5 -m32 -mcpu=ultrasparc -O3 -fomit-frame-pointer -Wall -DB_ENDIAN -DBN_DIV2W -DMD5_ASM   -c -o asm/des_enc-sparc.o asm/des_enc-sparc.S
  asm/des_enc-sparc.S:2007: unterminated character constant
  asm/des_enc-sparc.S:2008: unterminated character constant

21 years agoNULL tofree when it is freed to avoid double free.
Dr. Stephen Henson [Thu, 9 Jan 2003 13:06:49 +0000 (13:06 +0000)]
NULL tofree when it is freed to avoid double free.

Make sure key is not NULL before freeing it.