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.
This commit is contained in:
Родитель
d5f88cf6f2
Коммит
ecbd427c31
|
@ -38,6 +38,7 @@
|
||||||
#include "certdb.h"
|
#include "certdb.h"
|
||||||
#include "certt.h"
|
#include "certt.h"
|
||||||
#include "cert.h"
|
#include "cert.h"
|
||||||
|
#include "certxutl.h"
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Find all user certificates that match the given criteria.
|
* Find all user certificates that match the given criteria.
|
||||||
|
@ -511,6 +512,7 @@ CollectDistNames( CERTCertificate *cert, SECItem *k, void *data)
|
||||||
|
|
||||||
/* copy the name */
|
/* copy the name */
|
||||||
node->name.len = len = cert->derSubject.len;
|
node->name.len = len = cert->derSubject.len;
|
||||||
|
node->name.type = siBuffer;
|
||||||
node->name.data = (unsigned char*)PORT_ArenaAlloc(names->arena, len);
|
node->name.data = (unsigned char*)PORT_ArenaAlloc(names->arena, len);
|
||||||
if ( node->name.data == NULL ) {
|
if ( node->name.data == NULL ) {
|
||||||
return(SECFailure);
|
return(SECFailure);
|
||||||
|
|
Загрузка…
Ссылка в новой задаче