diff options
Diffstat (limited to '')
| -rw-r--r-- | src/lib/libssl/bs_ber.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/lib/libssl/bs_ber.c b/src/lib/libssl/bs_ber.c index 6e945a0246..7863b8be0c 100644 --- a/src/lib/libssl/bs_ber.c +++ b/src/lib/libssl/bs_ber.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: bs_ber.c,v 1.8 2015/06/21 16:10:45 doug Exp $ */ | 1 | /* $OpenBSD: bs_ber.c,v 1.9 2016/12/03 12:34:35 jsing Exp $ */ |
| 2 | /* | 2 | /* |
| 3 | * Copyright (c) 2014, Google Inc. | 3 | * Copyright (c) 2014, Google Inc. |
| 4 | * | 4 | * |
| @@ -103,7 +103,9 @@ is_primitive_type(unsigned int tag) | |||
| 103 | static char | 103 | static char |
| 104 | is_eoc(size_t header_len, CBS *contents) | 104 | is_eoc(size_t header_len, CBS *contents) |
| 105 | { | 105 | { |
| 106 | return header_len == 2 && CBS_mem_equal(contents, "\x00\x00", 2); | 106 | const unsigned char eoc[] = {0x0, 0x0}; |
| 107 | |||
| 108 | return header_len == 2 && CBS_mem_equal(contents, eoc, 2); | ||
| 107 | } | 109 | } |
| 108 | 110 | ||
| 109 | /* | 111 | /* |
