libsec: zero name buffer in X509toECpub()

This commit is contained in:
cinap_lenrek 2017-02-10 21:42:11 +01:00
parent fb2abc2a04
commit 6840a9aafd

View file

@ -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);