Skip to content

Commit c1e3900

Browse files
author
pajoye
committed
- Fix #55301 (sybase part, take #2) check if malloc succeded
git-svn-id: http://svn.php.net/repository/php/php-src/trunk@313903 c90b9560-bf6c-de11-be94-00142212c4b1
1 parent 4fa9ce5 commit c1e3900

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/sybase_ct/php_sybase_ct.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -777,7 +777,7 @@ static void php_sybase_do_connect(INTERNAL_FUNCTION_PARAMETERS, int persistent)
777777
}
778778

779779
sybase_ptr = (sybase_link *) malloc(sizeof(sybase_link));
780-
if (sybase_ptr) {
780+
if (!sybase_ptr) {
781781
efree(hashed_details);
782782
RETURN_FALSE;
783783
}

0 commit comments

Comments
 (0)