]> granicus.if.org Git - php/commitdiff
Fix for bug 23402. Crash when mssql?bind was used incorrectly
authorFrank M. Kromann <fmk@php.net>
Wed, 21 May 2003 00:06:41 +0000 (00:06 +0000)
committerFrank M. Kromann <fmk@php.net>
Wed, 21 May 2003 00:06:41 +0000 (00:06 +0000)
ext/mssql/php_mssql.c

index f8be1ff988f9702e134d10a4dfc6b7f44fa6b671..678b63211ad8ccbc16cf4c5beabc03121721d914 100644 (file)
@@ -2017,6 +2017,7 @@ PHP_FUNCTION(mssql_bind)
 
        memset((void*)&bind,0,sizeof(mssql_bind));
        zend_hash_add(statement->binds,Z_STRVAL_PP(param_name),Z_STRLEN_PP(param_name),&bind,sizeof(mssql_bind),(void **)&bindp);
+       if( NULL == bindp ) RETURN_FALSE;
        bindp->zval=*var;
        zval_add_ref(var);