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
Hide 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,19 +460,17 @@ simple_command(MYSQL *mysql,enum enum_server_command command, const char *arg,
{
net
->
last_errno
=
CR_NET_PACKET_TOO_LARGE
;
strmov
(
net
->
last_error
,
ER
(
net
->
last_errno
));
return
(
packet_error
)
;
goto
end
;
}
else
end_server
(
mysql
);
if
(
mysql_reconnect
(
mysql
))
goto
end
;
if
(
net_write_command
(
net
,(
uchar
)
command
,
arg
,
length
?
length
:
(
ulong
)
strlen
(
arg
)))
{
end_server
(
mysql
);
if
(
mysql_reconnect
(
mysql
)
||
net_write_command
(
net
,(
uchar
)
command
,
arg
,
length
?
length
:
(
ulong
)
strlen
(
arg
)))
{
net
->
last_errno
=
CR_SERVER_GONE_ERROR
;
strmov
(
net
->
last_error
,
ER
(
net
->
last_errno
));
goto
end
;
}
net
->
last_errno
=
CR_SERVER_GONE_ERROR
;
strmov
(
net
->
last_error
,
ER
(
net
->
last_errno
));
goto
end
;
}
}
result
=
0
;
...
...
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