Author: trawick Date: Wed Jul 18 12:02:59 2012 New Revision: 1362895 URL: http://svn.apache.org/viewvc?rev=1362895&view=rev Log: merge r1362892 from apr trunk: APR dbd FreeTDS support: Fix spurious API errors caused by unitialized fields. Use apr_pcalloc instead of apr_palloc when allocating the dbd structure so that all fields are initialized. Submitted by: TROY.LIU 劉春偉 Reviewed by: trawick Modified: apr/apr-util/branches/1.4.x/CHANGES apr/apr-util/branches/1.4.x/dbd/apr_dbd_freetds.c Modified: apr/apr-util/branches/1.4.x/CHANGES URL: http://svn.apache.org/viewvc/apr/apr-util/branches/1.4.x/CHANGES?rev=1362895&r1=1362894&r2=1362895&view=diff ============================================================================== --- apr/apr-util/branches/1.4.x/CHANGES [utf-8] (original) +++ apr/apr-util/branches/1.4.x/CHANGES [utf-8] Wed Jul 18 12:02:59 2012 @@ -1,6 +1,9 @@ -*- coding: utf-8 -*- Changes with APR-util 1.4.3 + *) APR dbd FreeTDS support: Fix spurious API errors caused by unitialized + fields. [TROY.LIU 劉春偉 ] + *) apr_password_validate: Increase maximum hash string length to allow more than 9999 rounds with sha512-crypt. PR 53410. [Stefan Fritsch] Modified: apr/apr-util/branches/1.4.x/dbd/apr_dbd_freetds.c URL: http://svn.apache.org/viewvc/apr/apr-util/branches/1.4.x/dbd/apr_dbd_freetds.c?rev=1362895&r1=1362894&r2=1362895&view=diff ============================================================================== --- apr/apr-util/branches/1.4.x/dbd/apr_dbd_freetds.c (original) +++ apr/apr-util/branches/1.4.x/dbd/apr_dbd_freetds.c Wed Jul 18 12:02:59 2012 @@ -627,7 +627,7 @@ static apr_dbd_t *dbd_freetds_open(apr_p if (process == NULL) { return NULL; } - sql = apr_palloc (pool, sizeof (apr_dbd_t)); + sql = apr_pcalloc(pool, sizeof (apr_dbd_t)); sql->pool = pool; sql->proc = process; sql->params = params;