diff options
| author | doug <> | 2015-02-06 10:06:30 +0000 |
|---|---|---|
| committer | doug <> | 2015-02-06 10:06:30 +0000 |
| commit | 62ba7b329e9291ffb7e77ed61c1d483b9dd6eef2 (patch) | |
| tree | 15ea2e1d12e7999b5da37f70cd648ac9663d4ba4 /src | |
| parent | a56cd64072f7062672fbc04345ac7bed25aef5f2 (diff) | |
| download | openbsd-62ba7b329e9291ffb7e77ed61c1d483b9dd6eef2.tar.gz openbsd-62ba7b329e9291ffb7e77ed61c1d483b9dd6eef2.tar.bz2 openbsd-62ba7b329e9291ffb7e77ed61c1d483b9dd6eef2.zip | |
Remove accidental, commented out code.
This was to test a patch for upstream.
Diffstat (limited to 'src')
| -rw-r--r-- | src/lib/libssl/bs_cbb.c | 12 | ||||
| -rw-r--r-- | src/lib/libssl/src/ssl/bs_cbb.c | 12 |
2 files changed, 2 insertions, 22 deletions
diff --git a/src/lib/libssl/bs_cbb.c b/src/lib/libssl/bs_cbb.c index 668231c1c7..11688bcb7b 100644 --- a/src/lib/libssl/bs_cbb.c +++ b/src/lib/libssl/bs_cbb.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: bs_cbb.c,v 1.1 2015/02/06 09:36:16 doug Exp $ */ | 1 | /* $OpenBSD: bs_cbb.c,v 1.2 2015/02/06 10:06:30 doug Exp $ */ |
| 2 | /* | 2 | /* |
| 3 | * Copyright (c) 2014, Google Inc. | 3 | * Copyright (c) 2014, Google Inc. |
| 4 | * | 4 | * |
| @@ -80,16 +80,6 @@ static int cbb_buffer_add(struct cbb_buffer_st *base, uint8_t **out, | |||
| 80 | return 0; | 80 | return 0; |
| 81 | } | 81 | } |
| 82 | 82 | ||
| 83 | #if 0 | ||
| 84 | // XXX Added for boringssl patch testing | ||
| 85 | if (len == 0) { | ||
| 86 | if (out) { | ||
| 87 | *out = NULL; | ||
| 88 | } | ||
| 89 | return 1; | ||
| 90 | } | ||
| 91 | #endif | ||
| 92 | |||
| 93 | newlen = base->len + len; | 83 | newlen = base->len + len; |
| 94 | if (newlen < base->len) { | 84 | if (newlen < base->len) { |
| 95 | /* Overflow */ | 85 | /* Overflow */ |
diff --git a/src/lib/libssl/src/ssl/bs_cbb.c b/src/lib/libssl/src/ssl/bs_cbb.c index 668231c1c7..11688bcb7b 100644 --- a/src/lib/libssl/src/ssl/bs_cbb.c +++ b/src/lib/libssl/src/ssl/bs_cbb.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: bs_cbb.c,v 1.1 2015/02/06 09:36:16 doug Exp $ */ | 1 | /* $OpenBSD: bs_cbb.c,v 1.2 2015/02/06 10:06:30 doug Exp $ */ |
| 2 | /* | 2 | /* |
| 3 | * Copyright (c) 2014, Google Inc. | 3 | * Copyright (c) 2014, Google Inc. |
| 4 | * | 4 | * |
| @@ -80,16 +80,6 @@ static int cbb_buffer_add(struct cbb_buffer_st *base, uint8_t **out, | |||
| 80 | return 0; | 80 | return 0; |
| 81 | } | 81 | } |
| 82 | 82 | ||
| 83 | #if 0 | ||
| 84 | // XXX Added for boringssl patch testing | ||
| 85 | if (len == 0) { | ||
| 86 | if (out) { | ||
| 87 | *out = NULL; | ||
| 88 | } | ||
| 89 | return 1; | ||
| 90 | } | ||
| 91 | #endif | ||
| 92 | |||
| 93 | newlen = base->len + len; | 83 | newlen = base->len + len; |
| 94 | if (newlen < base->len) { | 84 | if (newlen < base->len) { |
| 95 | /* Overflow */ | 85 | /* Overflow */ |
