Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 651996 Details for
Bug 872784
slapcat segfaults when called form /usr/libexec/openldap/check-config.sh if /etc/openldap/slapd.d/cn=config.ldif not present
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
proposed patch
0001-slapcat-fix-segfault-when-unable-to-get-database-fir.patch (text/plain), 870 bytes, created by
Jan Vcelak
on 2012-11-26 15:00:03 UTC
(
hide
)
Description:
proposed patch
Filename:
MIME Type:
Creator:
Jan Vcelak
Created:
2012-11-26 15:00:03 UTC
Size:
870 bytes
patch
obsolete
>From 0cb31d5c32d40149d5a4375e6d756047a5434dba Mon Sep 17 00:00:00 2001 >From: Jan Vcelak <jvcelak@redhat.com> >Date: Mon, 26 Nov 2012 15:43:59 +0100 >Subject: [PATCH] slapcat: fix segfault when unable to get database first > entry > >Can be triggered if there is an empty slapd.d config directory >with command: slapcat -c -H ldap:///cn=config >--- > servers/slapd/slapcat.c | 7 +++++++ > 1 file changed, 7 insertions(+) > >diff --git a/servers/slapd/slapcat.c b/servers/slapd/slapcat.c >index 64fba4a..dfe0a26 100644 >--- a/servers/slapd/slapcat.c >+++ b/servers/slapd/slapcat.c >@@ -96,6 +96,13 @@ slapcat( int argc, char **argv ) > } > } > >+ if ( !id ) { >+ be->be_entry_close( be ); >+ fprintf( stderr, "%s: could not get database first entry.\n", >+ progname ); >+ exit( EXIT_FAILURE ); >+ } >+ > for ( ; id != NOID; id = be->be_entry_next( be ) ) > { > char *data; >-- >1.7.11.7 >
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 872784
: 651996