commit | 7c59363a85e07d67d0e7ee9d25151365b0e259a4 | [log] [tgz] |
---|---|---|
author | Manuel Pégourié-Gonnard <mpg@elzevir.fr> | Mon Jan 20 10:27:13 2014 +0100 |
committer | Paul Bakker <p.j.bakker@polarssl.org> | Wed Jan 22 13:02:39 2014 +0100 |
tree | 37716496fce00c857f8a6e723f09ad6a04c2c89a | |
parent | 9e987edf9f060eb9180ef972a1c5fd49bca88612 [diff] [blame] |
Remove a few dead stores
diff --git a/library/x509_csr.c b/library/x509_csr.c index c0c7679..e45935a 100644 --- a/library/x509_csr.c +++ b/library/x509_csr.c
@@ -112,13 +112,7 @@ if( ret == 0 ) { /* - * Was PEM encoded - */ - buflen -= use_len; - buf += use_len; - - /* - * Steal PEM buffer + * Was PEM encoded, steal PEM buffer */ p = pem.buf; pem.buf = NULL; @@ -142,8 +136,6 @@ return( POLARSSL_ERR_X509_MALLOC_FAILED ); memcpy( p, buf, buflen ); - - buflen = 0; } csr->raw.p = p;