summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/util/base64.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/util/base64.c b/lib/util/base64.c
index de26b5b8702..a4ce6fa324d 100644
--- a/lib/util/base64.c
+++ b/lib/util/base64.c
@@ -48,8 +48,7 @@ _PUBLIC_ DATA_BLOB base64_decode_data_blob_talloc(TALLOC_CTX *mem_ctx, const cha
n = byte_offset+1;
} else {
d[byte_offset] |= (idx >> (bit_offset-2));
- d[byte_offset+1] = 0;
- d[byte_offset+1] |= (idx << (8-(bit_offset-2))) & 0xFF;
+ d[byte_offset+1] = (idx << (8-(bit_offset-2))) & 0xFF;
n = byte_offset+2;
}
s++; i++;