diff --git a/libraries/libldap/result.c b/libraries/libldap/result.c index e98ea7dd75..05580b793c 100644 --- a/libraries/libldap/result.c +++ b/libraries/libldap/result.c @@ -994,6 +994,7 @@ nextresp2: /* need to return -1, because otherwise * a valid result is expected */ + ld->ld_errno = lderr; return -1; } }