]> git.sur5r.net Git - openldap/commitdiff
ITS#3578 increment parent's referral count
authorHoward Chu <hyc@openldap.org>
Tue, 2 Aug 2005 11:24:52 +0000 (11:24 +0000)
committerHoward Chu <hyc@openldap.org>
Tue, 2 Aug 2005 11:24:52 +0000 (11:24 +0000)
libraries/libldap/request.c

index 637fbea859511c1ba988745aa0e75356e2c274ed..12fc3af44767d78f19861bb1624cab1827e6a411 100644 (file)
@@ -263,7 +263,7 @@ ldap_send_server_request(
                        ++parentreq->lr_outrefcnt;
                }
                lr->lr_origid = parentreq->lr_origid;
-               lr->lr_parentcnt = parentreq->lr_parentcnt + 1;
+               lr->lr_parentcnt = ++parentreq->lr_parentcnt;
                lr->lr_parent = parentreq;
                lr->lr_refnext = parentreq->lr_child;
                parentreq->lr_child = lr;