git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cf5a810
)
lib: Remove SMB_ASSERT from base64_encode_data_blob
author
Volker Lendecke
<vl@samba.org>
Tue, 3 May 2016 13:56:37 +0000
(15:56 +0200)
committer
Jeremy Allison
<jra@samba.org>
Tue, 3 May 2016 23:28:23 +0000
(
01:28
+0200)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
lib/util/base64.c
patch
|
blob
|
history
diff --git
a/lib/util/base64.c
b/lib/util/base64.c
index a4ce6fa324d9a4043fd7fbd78fa17dba369e33a1..e01fb6d35e293059af28ad8e3c3ced542948c8b4 100644
(file)
--- a/
lib/util/base64.c
+++ b/
lib/util/base64.c
@@
-114,7
+114,9
@@
_PUBLIC_ char *base64_encode_data_blob(TALLOC_CTX *mem_ctx, DATA_BLOB data)
* random but should be enough for
* the = and \0 */
result = talloc_array(mem_ctx, char, output_len); /* get us plenty of space */
- SMB_ASSERT(result != NULL);
+ if (result == NULL) {
+ return NULL;
+ }
while (len--) {
int c = (unsigned char) *(data.data++);