diff options
| author | cinap_lenrek <cinap_lenrek@felloff.net> | 2017-02-10 21:42:11 +0100 |
|---|---|---|
| committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2017-02-10 21:42:11 +0100 |
| commit | 6840a9aafdd1356152765d2f9e0bd980fbc6cd6f (patch) | |
| tree | 6d67e8596cb0bcae18aafa9b2e19252163133f70 | |
| parent | fb2abc2a0483bc1ffa10f341b6d2f665a5e03bca (diff) | |
| download | plan9front-6840a9aafdd1356152765d2f9e0bd980fbc6cd6f.tar.xz | |
libsec: zero name buffer in X509toECpub()
| -rw-r--r-- | sys/src/libsec/port/x509.c | 3 |
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); |
