The Samba-Bugzilla – Attachment 7533 Details for
Bug 8920
Avoid null dereference in initialize_password_db()
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch used in Debian and Ubuntu
initialize_password_db-null-deref (text/plain), 1.03 KB, created by
Debian samba package maintainers (PUBLIC MAILING LIST)
on 2012-05-08 20:09:54 UTC
(
hide
)
Description:
Patch used in Debian and Ubuntu
Filename:
MIME Type:
Creator:
Debian samba package maintainers (PUBLIC MAILING LIST)
Created:
2012-05-08 20:09:54 UTC
Size:
1.03 KB
patch
obsolete
>Description: Avoid null dereference in initialize_password_db() > When initialize_password_db() is called with reload=True, it's assumed that > the free_private_data member of pdb_methods is non-null. This is not > necessarily the case, as the tdb backend has no private data and therefore > no free function. Check to see if we have private data that needs freed > before calling. >Author: Steve Langasek <steve.langasek@ubuntu.com> >Bug-Ubuntu: https://bugs.launchpad.net/bugs/829221 > >Index: ubuntu/source3/passdb/pdb_interface.c >=================================================================== >--- ubuntu.orig/source3/passdb/pdb_interface.c >+++ ubuntu/source3/passdb/pdb_interface.c >@@ -176,7 +176,8 @@ > static struct pdb_methods *pdb = NULL; > > if ( pdb && reload ) { >- pdb->free_private_data( &(pdb->private_data) ); >+ if (pdb->private_data) >+ pdb->free_private_data( &(pdb->private_data) ); > if ( !NT_STATUS_IS_OK( make_pdb_method_name( &pdb, lp_passdb_backend() ) ) ) { > char *msg = NULL; > if (asprintf(&msg, "pdb_get_methods_reload: "
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 8920
:
7533
|
7539