apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From n..@apache.org
Subject svn commit: r577441 - in /apr/apr-util/trunk/dbd: apr_dbd_freetds.c apr_dbd_mysql.c apr_dbd_oracle.c
Date Wed, 19 Sep 2007 20:42:46 GMT
Author: niq
Date: Wed Sep 19 13:42:46 2007
New Revision: 577441

URL: http://svn.apache.org/viewvc?rev=577441&view=rev
Log:
Fix r577214 to avoid infinite loop!

Modified:
    apr/apr-util/trunk/dbd/apr_dbd_freetds.c
    apr/apr-util/trunk/dbd/apr_dbd_mysql.c
    apr/apr-util/trunk/dbd/apr_dbd_oracle.c

Modified: apr/apr-util/trunk/dbd/apr_dbd_freetds.c
URL: http://svn.apache.org/viewvc/apr/apr-util/trunk/dbd/apr_dbd_freetds.c?rev=577441&r1=577440&r2=577441&view=diff
==============================================================================
--- apr/apr-util/trunk/dbd/apr_dbd_freetds.c (original)
+++ apr/apr-util/trunk/dbd/apr_dbd_freetds.c Wed Sep 19 13:42:46 2007
@@ -551,6 +551,7 @@
     for (ptr = strchr(params, '='); ptr; ptr = strchr(ptr, '=')) {
         /* don't dereference memory that may not belong to us */
         if (ptr == params) {
+            ++ptr;
             continue;
         }
         for (key = ptr-1; isspace(*key); --key);

Modified: apr/apr-util/trunk/dbd/apr_dbd_mysql.c
URL: http://svn.apache.org/viewvc/apr/apr-util/trunk/dbd/apr_dbd_mysql.c?rev=577441&r1=577440&r2=577441&view=diff
==============================================================================
--- apr/apr-util/trunk/dbd/apr_dbd_mysql.c (original)
+++ apr/apr-util/trunk/dbd/apr_dbd_mysql.c Wed Sep 19 13:42:46 2007
@@ -1103,6 +1103,7 @@
     for (ptr = strchr(params, '='); ptr; ptr = strchr(ptr, '=')) {
         /* don't dereference memory that may not belong to us */
         if (ptr == params) {
+            ++ptr;
             continue;
         }
         for (key = ptr-1; isspace(*key); --key);

Modified: apr/apr-util/trunk/dbd/apr_dbd_oracle.c
URL: http://svn.apache.org/viewvc/apr/apr-util/trunk/dbd/apr_dbd_oracle.c?rev=577441&r1=577440&r2=577441&view=diff
==============================================================================
--- apr/apr-util/trunk/dbd/apr_dbd_oracle.c (original)
+++ apr/apr-util/trunk/dbd/apr_dbd_oracle.c Wed Sep 19 13:42:46 2007
@@ -468,6 +468,7 @@
     for (ptr = strchr(params, '='); ptr; ptr = strchr(ptr, '=')) {
         /* don't dereference memory that may not belong to us */
         if (ptr == params) {
+            ++ptr;
             continue;
         }
         for (key = ptr-1; isspace(*key); --key);



Mime
View raw message