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;
|
||||
Bytes *b;
|
||||
|
||||
if(name != nil)
|
||||
memset(name, 0, nname);
|
||||
|
||||
b = makebytes(cert, ncert);
|
||||
c = decode_cert(b);
|
||||
freebytes(b);
|
||||
|
|
Loading…
Reference in a new issue