[Pdns-users] Unable to specify mysql port in newer versions

Norbert Sendetzky norbert at linuxnetworks.de
Sun Feb 1 13:43:09 UTC 2004


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Sunday 01 February 2004 01:55, Chris Anderton wrote:
> I can't see any mention of this anywhere - then again i'm not
> really sure where to look! From what i can see, the mysql_connect
> function was deprecated for mysql_real_connect, which has a port
> parameter...

In the GMySQL backend mysql_real_connect is used, but instead of eight 
parameters (according to the mysql.com doc) it sets only seven. The 
port parameter is missing and I assume this is a bug, because at its 
parameter position the socket parameter is assigned.

Furthermore the SMySQL class is allocated dynamically by new, but gets 
never deleted. This leads to a memory hole if an exception is thrown 
somewhere in the backend.

If you have a patch for these problems, please send it to Bert and the 
pdns-dev list.


Norbert

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iEYEARECAAYFAkAdAnAACgkQxMLs5v5/7eDq4wCdEhron07Mim5sl/67GZ0tDAv2
XKAAniZLsnQ3O+VHLleXpd2KCqqug+Ah
=liJE
-----END PGP SIGNATURE-----



More information about the Pdns-users mailing list