diff options
author | Jeremy Allison <jra@samba.org> | 2004-03-30 18:38:21 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2004-03-30 18:38:21 +0000 |
commit | a1994d1c967082a5e97ff5ce01c9d5c63deb2db0 (patch) | |
tree | 4e48df4ff69c581ddde4cd6f7f6bfc0f88a16ca7 /source3/libsmb | |
parent | 62ae6e36f09c2ec402bc7816651bfaa1af2e6bb6 (diff) | |
download | samba-a1994d1c967082a5e97ff5ce01c9d5c63deb2db0.tar.gz samba-a1994d1c967082a5e97ff5ce01c9d5c63deb2db0.tar.bz2 samba-a1994d1c967082a5e97ff5ce01c9d5c63deb2db0.zip |
Ensure we cope correctly with ea length of zero. Detect torture fail correctly.
Jeremy.
(This used to be commit 43db249fb814cef99afecd22c20a824d2519faf9)
Diffstat (limited to 'source3/libsmb')
-rw-r--r-- | source3/libsmb/clifile.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source3/libsmb/clifile.c b/source3/libsmb/clifile.c index 52164dc0b4..bf7923ec78 100644 --- a/source3/libsmb/clifile.c +++ b/source3/libsmb/clifile.c @@ -1297,6 +1297,12 @@ static BOOL cli_get_ea_list(struct cli_state *cli, goto out; } + if (ea_size == 0) { + /* No EA's present. */ + ret = True; + goto out; + } + p = rdata + 4; ea_size -= 4; |