]> git.sur5r.net Git - openldap/commitdiff
ITS#6569 return server's error code on Disconnect
authorHoward Chu <hyc@openldap.org>
Wed, 2 Jun 2010 03:30:19 +0000 (03:30 +0000)
committerHoward Chu <hyc@openldap.org>
Wed, 2 Jun 2010 03:30:19 +0000 (03:30 +0000)
libraries/libldap/result.c

index e98ea7dd75110d95b4e75fc686fa47f567c82cde..05580b793cfa8215566cb412215f35021927bf8b 100644 (file)
@@ -994,6 +994,7 @@ nextresp2:
 
                        /* need to return -1, because otherwise
                         * a valid result is expected */
+                       ld->ld_errno = lderr;
                        return -1;
                }
        }