summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/usr.bin/openssl/engine.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/usr.bin/openssl/engine.c b/src/usr.bin/openssl/engine.c
index 2d24e07254..009ecf77f7 100644
--- a/src/usr.bin/openssl/engine.c
+++ b/src/usr.bin/openssl/engine.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: engine.c,v 1.1 2014/08/26 17:47:24 jsing Exp $ */ 1/* $OpenBSD: engine.c,v 1.2 2014/12/07 15:08:32 jsing Exp $ */
2/* Written by Richard Levitte <richard@levitte.org> for the OpenSSL 2/* Written by Richard Levitte <richard@levitte.org> for the OpenSSL
3 * project 2000. 3 * project 2000.
4 */ 4 */
@@ -96,8 +96,6 @@ identity(char *ptr)
96static int 96static int
97append_buf(char **buf, const char *s, int *size, int step) 97append_buf(char **buf, const char *s, int *size, int step)
98{ 98{
99 int l = strlen(s);
100
101 if (*buf == NULL) { 99 if (*buf == NULL) {
102 *size = step; 100 *size = step;
103 *buf = malloc(*size); 101 *buf = malloc(*size);
@@ -105,8 +103,6 @@ append_buf(char **buf, const char *s, int *size, int step)
105 return 0; 103 return 0;
106 **buf = '\0'; 104 **buf = '\0';
107 } 105 }
108 if (**buf != '\0')
109 l += 2; /* ", " */
110 106
111 if (strlen(*buf) + strlen(s) >= (unsigned int) *size) { 107 if (strlen(*buf) + strlen(s) >= (unsigned int) *size) {
112 *size += step; 108 *size += step;