git.samba.org
/
samba.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix denial of service - memory corruption.
[samba.git]
/
source3
/
client
/
client.c
diff --git
a/source3/client/client.c
b/source3/client/client.c
index b7065916b95676a3946f50407a81701e3b6e908d..1e5e8e1acb3cdae326b574fe062c93646e82e53f 100644
(file)
--- a/
source3/client/client.c
+++ b/
source3/client/client.c
@@
-4384,8
+4384,10
@@
static void readline_callback(void)
again:
- if (cli->fd == -1)
+ if (cli->fd < 0 || cli->fd >= FD_SETSIZE) {
+ errno = EBADF;
return;
+ }
FD_ZERO(&fds);
FD_SET(cli->fd,&fds);