You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@apr.apache.org by bu...@apache.org on 2014/09/16 13:47:57 UTC

[Bug 56330] APR_DBD_MYSQL.c error

https://issues.apache.org/bugzilla/show_bug.cgi?id=56330

Jeff Trawick <tr...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #1 from Jeff Trawick <tr...@apache.org> ---
Fixed in apr trunk in r1625247, and in apr-util 1.5.x branch in r1625249.

The check for trans==NULL is retained, and the unprotected code is moved under
that check.

This function is also called from a cleanup established in
apr_dbd_transaction_start() as well as from a direct call from the application
to apr_dbd_transaction_end().  trans should never be NULL, but could in the
case of an errant application.  While APR generally does not protect against
bad parameters from the application, most of the DBD drivers have this check
for trans != NULL in the transaction-end support, so I did not remove it from
the MySQL driver.

Thanks for your report!

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@apr.apache.org
For additional commands, e-mail: bugs-help@apr.apache.org