From d296d190003b32fffc9b5ec32362ca36ee9db03f Mon Sep 17 00:00:00 2001 From: Sriram Natarajan Date: Mon, 21 Dec 2009 20:39:48 +0000 Subject: [PATCH] Fixed bug #50540 (Crash within ldap_first_reference function) --- ext/ldap/ldap.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ext/ldap/ldap.c b/ext/ldap/ldap.c index 877e67e13e..b74fb0df95 100644 --- a/ext/ldap/ldap.c +++ b/ext/ldap/ldap.c @@ -1965,6 +1965,7 @@ PHP_FUNCTION(ldap_first_reference) resultentry->id = Z_LVAL_P(result); zend_list_addref(resultentry->id); resultentry->data = entry; + resultentry->ber = NULL; } } /* }}} */ @@ -1993,6 +1994,7 @@ PHP_FUNCTION(ldap_next_reference) resultentry_next->id = resultentry->id; zend_list_addref(resultentry->id); resultentry_next->data = entry_next; + resultentry_next->ber = NULL; } } /* }}} */ -- 2.50.1