Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
6e820c80
Commit
6e820c80
authored
20 years ago
by
monty@mysql.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge mysql.com:/home/my/mysql-3.23 into mysql.com:/home/my/mysql-4.0
parents
7a046496
5a0a4a13
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
libmysql/libmysql.c
libmysql/libmysql.c
+2
-1
No files found.
libmysql/libmysql.c
View file @
6e820c80
...
...
@@ -1863,7 +1863,8 @@ mysql_real_connect(MYSQL *mysql,const char *host, const char *user,
sprintf
(
net
->
last_error
,
ER
(
CR_UNKNOWN_HOST
),
host
,
tmp_errno
);
goto
error
;
}
memcpy
(
&
sock_addr
.
sin_addr
,
hp
->
h_addr
,
(
size_t
)
hp
->
h_length
);
memcpy
(
&
sock_addr
.
sin_addr
,
hp
->
h_addr
,
min
(
sizeof
(
sock_addr
.
sin_addr
),
(
size_t
)
hp
->
h_length
));
my_gethostbyname_r_free
();
}
sock_addr
.
sin_port
=
(
ushort
)
htons
((
ushort
)
port
);
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment