Amended.

sqlbox would try to connect to random ports on the mysql host if no port
was defined due to an uninitialized variable use.

Index: sqlbox_mysql.c
===================================================================
--- sqlbox_mysql.c (revision 55)
+++ sqlbox_mysql.c (working copy)
@@ -396,6 +396,9 @@
     if (have_port) {
         db_conf->mysql->port = mysql_port;
     }
+    else {
+        db_conf->mysql->port = 0;
+    }

     pool = dbpool_create(DBPOOL_MYSQL, db_conf, pool_size);
     gw_assert(pool != NULL);

On Mon, Nov 9, 2015 at 4:23 PM, Vyronas Tsingaras <vtsinga...@amdtelecom.net
> wrote:

> sqlbox would try to connect to random ports on the mysql host if no port
> was defined due to an uninitialized variable use.
>
> Index: sqlbox_mysql.c
> ===================================================================
> --- sqlbox_mysql.c (revision 55)
> +++ sqlbox_mysql.c (working copy)
> @@ -396,6 +396,9 @@
>      if (have_port) {
>          db_conf->mysql->port = mysql_port;
>      }
> +    else {
> +        db_conf->mysql->port = 3306;
> +    }
>
>      pool = dbpool_create(DBPOOL_MYSQL, db_conf, pool_size);
>      gw_assert(pool != NULL);
>
> --
> *Vyronas Tsingaras **| IT Department*
> 12th Km Thessaloniki - Liti, Zip.57200, GreeceTel.: +30.23940.20336, Fax:
> +30.23940.25922Skype id: vtsingaras.amdtelecomE-mail:
> vtsinga...@amdtelecom.net <b...@amdtelecom.net>www.amdtelecom.net
> <http://www.linkedin.com/company/amd-telecom-s.a.?trk=company_logo>
> <https://www.facebook.com/pages/AMD-Telecom/282439285138965?fref=ts>
> <https://www.twitter.com/amdtelecom>
> Please consider the environment before printing this email
>
> This e-mail message and all attachments transmitted with it are
> confidential and are intended solely for the addressee(s). If the reader of
> this message is not the intended recipient, you are hereby notified that
> any reading, dissemination, distribution, copying, or other use of this
> message or its attachment(s) is strictly prohibited.
>



-- 
*Vyronas Tsingaras **| IT Department*
12th Km Thessaloniki - Liti, Zip.57200, GreeceTel.: +30.23940.20336, Fax:
+30.23940.25922Skype id: vtsingaras.amdtelecomE-mail:
vtsinga...@amdtelecom.net <b...@amdtelecom.net>www.amdtelecom.net
<http://www.linkedin.com/company/amd-telecom-s.a.?trk=company_logo>
<https://www.facebook.com/pages/AMD-Telecom/282439285138965?fref=ts>
<https://www.twitter.com/amdtelecom>
Please consider the environment before printing this email

This e-mail message and all attachments transmitted with it are
confidential and are intended solely for the addressee(s). If the reader of
this message is not the intended recipient, you are hereby notified that
any reading, dissemination, distribution, copying, or other use of this
message or its attachment(s) is strictly prohibited.

Reply via email to