The Samba-Bugzilla – Attachment 3628 Details for
Bug 5739
Cosmetic corrections
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Last correction
cosmetic.patch (text/plain), 1.33 KB, created by
Matthias Dieter Wallnöfer
on 2008-09-24 16:54:22 UTC
(
hide
)
Description:
Last correction
Filename:
MIME Type:
Creator:
Matthias Dieter Wallnöfer
Created:
2008-09-24 16:54:22 UTC
Size:
1.33 KB
patch
obsolete
>diff --git a/source4/lib/ldb/common/ldb_ldif.c b/source4/lib/ldb/common/ldb_ldif.c >index 6cbd30f..424a873 100644 >--- a/source4/lib/ldb/common/ldb_ldif.c >+++ b/source4/lib/ldb/common/ldb_ldif.c >@@ -191,19 +191,19 @@ int ldb_should_b64_encode(const struct ldb_val *val) > uint8_t *p = val->data; > > if (val->length == 0) { >- return LDB_SUCCESS; >+ return 0; > } > > if (p[0] == ' ' || p[0] == ':') { >- return LDB_ERR_OPERATIONS_ERROR; >+ return -1; > } > > for (i=0; i<val->length; i++) { > if (!isprint(p[i]) || p[i] == '\n') { >- return LDB_ERR_OPERATIONS_ERROR; >+ return -1; > } > } >- return LDB_SUCCESS; >+ return 0; > } > > /* this macro is used to handle the return checking on fprintf_fn() */ >diff --git a/source4/lib/ldb/modules/operational.c b/source4/lib/ldb/modules/operational.c >index 716f34d..d3f0cd5 100644 >--- a/source4/lib/ldb/modules/operational.c >+++ b/source4/lib/ldb/modules/operational.c >@@ -195,7 +195,7 @@ static int operational_callback(struct ldb_context *ldb, void *context, struct l > if (ares->type == LDB_REPLY_ENTRY) { > /* for each record returned post-process to add any derived > attributes that have been asked for */ >- if (operational_search_post_process(ac->module, ares->message, ac->attrs) != 0) { >+ if (operational_search_post_process(ac->module, ares->message, ac->attrs) != LDB_SUCCESS) { > goto error; > } > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 5739
:
3534
|
3535
|
3536
|
3537
|
3538
|
3539
|
3540
|
3541
| 3628