Mailinglist Archive: yast-commit (410 mails)

< Previous Next >
[yast-commit] r64891 - /branches/SuSE-Code-11-SP2-Branch/ldap-server/src/tree_structure.ycp
Author: rhafer
Date: Tue Jul 19 16:33:48 2011
New Revision: 64891

URL: http://svn.opensuse.org/viewcvs/yast?rev=64891&view=rev
Log:
Fixed crash when creating additional database (bnc#706468)

Modified:
branches/SuSE-Code-11-SP2-Branch/ldap-server/src/tree_structure.ycp

Modified: branches/SuSE-Code-11-SP2-Branch/ldap-server/src/tree_structure.ycp
URL:
http://svn.opensuse.org/viewcvs/yast/branches/SuSE-Code-11-SP2-Branch/ldap-server/src/tree_structure.ycp?rev=64891&r1=64890&r2=64891&view=diff
==============================================================================
--- branches/SuSE-Code-11-SP2-Branch/ldap-server/src/tree_structure.ycp
(original)
+++ branches/SuSE-Code-11-SP2-Branch/ldap-server/src/tree_structure.ycp Tue Jul
19 16:33:48 2011
@@ -558,7 +558,7 @@
}
LdapDatabase::ResetCreateBase();
map <string,any> syncrepl = LdapDatabase::GetSyncRepl();
- if ( size(syncrepl) > 0 )
+ if ( size(syncrepl) > 0 && size(syncrepl["syncrepl"]:$[]) > 0 )
{
list<map<string,string> > dblist =
LdapServer::ReadDatabaseList();
integer dbindex=0;
@@ -571,12 +571,13 @@
});
if (dbindex > 0)
{
- if ( ! LdapServer::WriteSyncRepl( dbindex, syncrepl ) )
+ if ( ! LdapServer::WriteSyncRepl( dbindex,
syncrepl["syncrepl"]:$[] ) )
{
map<string, string> err = LdapServer::ReadError();
callback_error = err["msg"]:"" + "\n" +
err["details"]:"";
return false;
}
+ LdapServer::WriteUpdateRef(dbindex,
syncrepl["updateref"]:$[]);
}
}
map <string,any> ppolicy = LdapDatabase::GetPpolicy();

--
To unsubscribe, e-mail: yast-commit+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: yast-commit+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages