mirror of
https://github.com/php/php-src.git
synced 2025-08-19 17:04:47 +02:00
fixed mysql bug #564 (http://bugs.mysql.com/bug.php?id=564)
This commit is contained in:
parent
c191b4343b
commit
0a2968a75f
1 changed files with 1 additions and 1 deletions
|
@ -1240,7 +1240,7 @@ mysql_real_connect(MYSQL *mysql,const char *host, const char *user,
|
|||
net->vio = vio_new(sock, VIO_TYPE_SOCKET, TRUE);
|
||||
bzero((char*) &UNIXaddr,sizeof(UNIXaddr));
|
||||
UNIXaddr.sun_family = AF_UNIX;
|
||||
strmov(UNIXaddr.sun_path, unix_socket);
|
||||
strmake(UNIXaddr.sun_path, unix_socket, sizeof(UNIXaddr.sun_path) - 1);
|
||||
if (connect2(sock,(struct sockaddr *) &UNIXaddr, sizeof(UNIXaddr),
|
||||
mysql->options.connect_timeout) <0)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue