summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys/src/libsec/port/x509.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/src/libsec/port/x509.c b/sys/src/libsec/port/x509.c
index a05d63159..5b99116cc 100644
--- a/sys/src/libsec/port/x509.c
+++ b/sys/src/libsec/port/x509.c
@@ -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);