The Samba-Bugzilla – Attachment 7731 Details for
Bug 9074
Too long NDR key in winbindd_cache.tdb
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Allow larger keys for NDR keys, modified calculation for UA keys
patch (text/plain), 705 bytes, created by
Michael Letzgus-Koppmann
on 2012-07-31 20:43:29 UTC
(
hide
)
Description:
Allow larger keys for NDR keys, modified calculation for UA keys
Filename:
MIME Type:
Creator:
Michael Letzgus-Koppmann
Created:
2012-07-31 20:43:29 UTC
Size:
705 bytes
patch
obsolete
>diff --git a/source3/winbindd/winbindd_cache.c b/source3/winbindd/winbindd_cache.c >index 66de29e..0b69e22 100644 >--- a/source3/winbindd/winbindd_cache.c >+++ b/source3/winbindd/winbindd_cache.c >@@ -4028,7 +4028,9 @@ static int cache_traverse_validate_fn(TDB_CONTEXT *the_tdb, TDB_DATA kbuf, TDB_D > > /* Paranoia check. */ > if (strncmp("UA/", (const char *)kbuf.dptr, 3) == 0) { >- max_key_len = 1024 * 1024; >+ max_key_len *= 1024; >+ } else if (strncmp("NDR/", (const char *)kbuf.dptr, 4) == 0) { >+ max_key_len *= 8; > } > if (kbuf.dsize > max_key_len) { > DEBUG(0, ("cache_traverse_validate_fn: key length too large: "
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 9074
: 7731