libsec: zero name buffer in X509toECpub()
This commit is contained in:
parent
fb2abc2a04
commit
6840a9aafd
|
@ -2320,6 +2320,9 @@ X509toECpub(uchar *cert, int ncert, char *name, int nname, ECdomain *dom)
|
||||||
ECpub *pub;
|
ECpub *pub;
|
||||||
Bytes *b;
|
Bytes *b;
|
||||||
|
|
||||||
|
if(name != nil)
|
||||||
|
memset(name, 0, nname);
|
||||||
|
|
||||||
b = makebytes(cert, ncert);
|
b = makebytes(cert, ncert);
|
||||||
c = decode_cert(b);
|
c = decode_cert(b);
|
||||||
freebytes(b);
|
freebytes(b);
|
||||||
|
|
Loading…
Reference in a new issue