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
9aa49681
Commit
9aa49681
authored
Jan 28, 2003
by
monty@mashka.mysql.fi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make PACKET_TOO_LARGE error handling safer in client
parent
2162408b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
11 deletions
+9
-11
libmysql/libmysql.c
libmysql/libmysql.c
+9
-11
No files found.
libmysql/libmysql.c
View file @
9aa49681
...
@@ -460,21 +460,19 @@ simple_command(MYSQL *mysql,enum enum_server_command command, const char *arg,
...
@@ -460,21 +460,19 @@ simple_command(MYSQL *mysql,enum enum_server_command command, const char *arg,
{
{
net
->
last_errno
=
CR_NET_PACKET_TOO_LARGE
;
net
->
last_errno
=
CR_NET_PACKET_TOO_LARGE
;
strmov
(
net
->
last_error
,
ER
(
net
->
last_errno
));
strmov
(
net
->
last_error
,
ER
(
net
->
last_errno
));
return
(
packet_error
)
;
goto
end
;
}
}
else
{
end_server
(
mysql
);
end_server
(
mysql
);
if
(
mysql_reconnect
(
mysql
)
||
if
(
mysql_reconnect
(
mysql
))
net_write_command
(
net
,(
uchar
)
command
,
arg
,
goto
end
;
if
(
net_write_command
(
net
,(
uchar
)
command
,
arg
,
length
?
length
:
(
ulong
)
strlen
(
arg
)))
length
?
length
:
(
ulong
)
strlen
(
arg
)))
{
{
net
->
last_errno
=
CR_SERVER_GONE_ERROR
;
net
->
last_errno
=
CR_SERVER_GONE_ERROR
;
strmov
(
net
->
last_error
,
ER
(
net
->
last_errno
));
strmov
(
net
->
last_error
,
ER
(
net
->
last_errno
));
goto
end
;
goto
end
;
}
}
}
}
}
result
=
0
;
result
=
0
;
if
(
!
skipp_check
)
if
(
!
skipp_check
)
result
=
((
mysql
->
packet_length
=
net_safe_read
(
mysql
))
==
packet_error
?
result
=
((
mysql
->
packet_length
=
net_safe_read
(
mysql
))
==
packet_error
?
...
...
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