diff options
| author | David Boreham <dboreham@redhat.com> | 2005-03-31 22:53:25 +0000 |
|---|---|---|
| committer | David Boreham <dboreham@redhat.com> | 2005-03-31 22:53:25 +0000 |
| commit | feaff0bbfa49d25742e8101db1c1112d62ffca6a (patch) | |
| tree | 6cdf54557fb2fe5f9a04fab7d6edc0c53925c326 /ldap/servers/plugins | |
| parent | 1680a5a91c5f3ddbf1b0e90dbf3cad5c5e0f7c5f (diff) | |
| download | ds-feaff0bbfa49d25742e8101db1c1112d62ffca6a.tar.gz ds-feaff0bbfa49d25742e8101db1c1112d62ffca6a.tar.xz ds-feaff0bbfa49d25742e8101db1c1112d62ffca6a.zip | |
Fix unicode conversion for passwords
Diffstat (limited to 'ldap/servers/plugins')
| -rw-r--r-- | ldap/servers/plugins/replication/windows_protocol_util.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ldap/servers/plugins/replication/windows_protocol_util.c b/ldap/servers/plugins/replication/windows_protocol_util.c index 4f37af87..a5956c5e 100644 --- a/ldap/servers/plugins/replication/windows_protocol_util.c +++ b/ldap/servers/plugins/replication/windows_protocol_util.c @@ -521,7 +521,7 @@ send_password_modify(Slapi_DN *sdn, char *password, Private_Repl_Protocol *prp) UChar *unicode_password = NULL; int32_t unicode_password_length = 0; /* Length in _characters_ */ int32_t buffer_size = 0; /* Size in _characters_ */ - UErrorCode error = 0; + UErrorCode error = U_ZERO_ERROR; char *quoted_password = NULL; struct berval *bvals[2]; @@ -535,6 +535,7 @@ send_password_modify(Slapi_DN *sdn, char *password, Private_Repl_Protocol *prp) buffer_size = unicode_password_length; unicode_password = (UChar *)slapi_ch_malloc(unicode_password_length * sizeof(UChar)); if (unicode_password) { + error = U_ZERO_ERROR; u_strFromUTF8(unicode_password, buffer_size, &unicode_password_length, quoted_password, strlen(quoted_password), &error); bv.bv_len = unicode_password_length * sizeof(UChar); |
