diff --git a/directory/c-sdk/ldap/libraries/libprldap/ldappr-error.c b/directory/c-sdk/ldap/libraries/libprldap/ldappr-error.c index f9a8c9b48aa..b22b367b2a4 100644 --- a/directory/c-sdk/ldap/libraries/libprldap/ldappr-error.c +++ b/directory/c-sdk/ldap/libraries/libprldap/ldappr-error.c @@ -32,7 +32,7 @@ void prldap_set_system_errno( int oserrno ) { - PR_SetError( PR_UNKNOWN_ERROR, oserrno ); + PR_SetError( PR_GetError(), oserrno ); }