--- contrib/dlz/drivers/dlz_bdbhpt_driver.c	2007-03-02 12:02:12.000000000 +0300
+++ contrib/dlz/drivers/dlz_bdbhpt_driver.c	2007-03-02 12:02:18.000000000 +0300
@@ -442,7 +442,7 @@
 		xfr_cursor->c_close(xfr_cursor);
 
 	if (dns_cursor != NULL)
-		dns_cursor->c_close(xfr_cursor);
+		dns_cursor->c_close(dns_cursor);
 
 	return result;
 }