ASF Bugzilla – Attachment 11162 Details for
Bug 28250
Crash in LDAP cache util_ldap_search_node_copy
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Proposed patch
util_ldap_cache.c.diff (text/plain), 1.21 KB, created by
Jari Ahonen
on 2004-04-07 09:19:35 UTC
(
hide
)
Description:
Proposed patch
Filename:
MIME Type:
Creator:
Jari Ahonen
Created:
2004-04-07 09:19:35 UTC
Size:
1.21 KB
patch
obsolete
>*** util_ldap_cache.c.orig Wed Feb 11 19:07:46 2004 >--- util_ldap_cache.c Wed Apr 7 11:09:21 2004 >*************** >*** 122,132 **** > newnode->vals = NULL; > } > if (!(newnode->username = util_ald_strdup(cache, node->username)) || >! !(newnode->dn = util_ald_strdup(cache, node->dn)) || >! !(newnode->bindpw = util_ald_strdup(cache, node->bindpw)) ) { > util_ldap_search_node_free(cache, newnode); > return NULL; > } > newnode->lastbind = node->lastbind; > > } >--- 122,139 ---- > newnode->vals = NULL; > } > if (!(newnode->username = util_ald_strdup(cache, node->username)) || >! !(newnode->dn = util_ald_strdup(cache, node->dn)) ) { > util_ldap_search_node_free(cache, newnode); > return NULL; > } >+ if(node->bindpw) { >+ if(!(newnode->bindpw = util_ald_strdup(cache, node->bindpw))) { >+ util_ldap_search_node_free(cache, newnode); >+ return NULL; >+ } >+ } else { >+ newnode->bindpw = NULL; >+ } > newnode->lastbind = node->lastbind; > > }
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 Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 28250
: 11162