зеркало из https://github.com/mozilla/gecko-dev.git
Bugzilla Bug 327529: unnamed arguments (third and after) for CERT_CreateRDN
must have the correct CERTAVA * type because compilers can't do automatic type conversions. r=nelsonb,jpierre. Modified files: alg1485.c secname.c
This commit is contained in:
Родитель
cfda9ddaff
Коммит
c449f54be3
|
@ -394,7 +394,7 @@ ParseRFC1485Name(char *buf, int len)
|
|||
while (bp < e) {
|
||||
ava = CERT_ParseRFC1485AVA(name->arena, &bp, e, PR_FALSE);
|
||||
if (ava == 0) goto loser;
|
||||
rdn = CERT_CreateRDN(name->arena, ava, 0);
|
||||
rdn = CERT_CreateRDN(name->arena, ava, (CERTAVA *)0);
|
||||
if (rdn == 0) goto loser;
|
||||
rv = CERT_AddRDN(name, rdn);
|
||||
if (rv) goto loser;
|
||||
|
|
|
@ -432,7 +432,7 @@ CERT_CopyName(PRArenaPool *arena, CERTName *to, CERTName *from)
|
|||
return rv;
|
||||
}
|
||||
while ((frdn = *rdns++) != NULL) {
|
||||
trdn = CERT_CreateRDN(arena, 0);
|
||||
trdn = CERT_CreateRDN(arena, NULL);
|
||||
if (!trdn) {
|
||||
rv = SECFailure;
|
||||
break;
|
||||
|
|
Загрузка…
Ссылка в новой задаче