Skip to content

Commit

Permalink
Fixed bug #50540 (Crash within ldap_first_reference function)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sriram Natarajan committed Dec 21, 2009
1 parent baaec77 commit 20cd29d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions NEWS
Expand Up @@ -35,6 +35,8 @@ PHP NEWS
- Fixed memory leak in extension loading when an error occurs on Windows.
(Pierre)

- Fixed bug #50540 (Crash while running ldap_next_reference test cases).
(Sriram)
- Fixed bug #50508 (compile failure: Conflicting HEADER type declarations).
(Jani)
- Fixed bug #50496 (Use of <stdbool.h> is valid only in a c99 compilation
Expand Down
2 changes: 2 additions & 0 deletions ext/ldap/ldap.c
Expand Up @@ -1911,6 +1911,7 @@ PHP_FUNCTION(ldap_first_reference)
resultentry->id = Z_LVAL_P(result);
zend_list_addref(resultentry->id);
resultentry->data = entry;
resultentry->ber = NULL;
}
}
/* }}} */
Expand Down Expand Up @@ -1939,6 +1940,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;
}
}
/* }}} */
Expand Down

0 comments on commit 20cd29d

Please sign in to comment.