diff options
author | nelsonb%netscape.com <devnull@localhost> | 2000-09-18 23:53:18 +0000 |
---|---|---|
committer | nelsonb%netscape.com <devnull@localhost> | 2000-09-18 23:53:18 +0000 |
commit | 7aaed21525831a5ba086b0ab8249a8d3a4df3784 (patch) | |
tree | 0c30373075df37426f07d3c02c524a89dc55c488 /security/nss/lib/certhigh/certhigh.c | |
parent | 3220cdb727307395c468d40ef3525d13e7153c6c (diff) | |
download | nss-hg-7aaed21525831a5ba086b0ab8249a8d3a4df3784.tar.gz |
Fix a UMR, one of many where the SECItem type field was uninitialized.
bug 39483. Also, eliminate a warning about calling an undeclared function
by including the header file.
Diffstat (limited to 'security/nss/lib/certhigh/certhigh.c')
-rw-r--r-- | security/nss/lib/certhigh/certhigh.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/security/nss/lib/certhigh/certhigh.c b/security/nss/lib/certhigh/certhigh.c index e24ad7553..803554e4e 100644 --- a/security/nss/lib/certhigh/certhigh.c +++ b/security/nss/lib/certhigh/certhigh.c @@ -38,6 +38,7 @@ #include "certdb.h" #include "certt.h" #include "cert.h" +#include "certxutl.h" /* * Find all user certificates that match the given criteria. @@ -511,6 +512,7 @@ CollectDistNames( CERTCertificate *cert, SECItem *k, void *data) /* copy the name */ node->name.len = len = cert->derSubject.len; + node->name.type = siBuffer; node->name.data = (unsigned char*)PORT_ArenaAlloc(names->arena, len); if ( node->name.data == NULL ) { return(SECFailure); |