diff options
author | Andrew Tridgell <tridge@samba.org> | 2011-03-24 14:45:27 +1100 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2011-03-25 04:37:06 +0100 |
commit | 2588e7180974d11a1e9cad19542bfcbfc30a1918 (patch) | |
tree | 37712ce4b692dc9c5a7ca0f6268c292febfab37a | |
parent | 5ed2039e1ed44006750fe6e15948bdff241de6ff (diff) | |
download | samba-2588e7180974d11a1e9cad19542bfcbfc30a1918.tar.gz samba-2588e7180974d11a1e9cad19542bfcbfc30a1918.tar.bz2 samba-2588e7180974d11a1e9cad19542bfcbfc30a1918.zip |
s3-libsmb: work our correct length for EA strings
-rw-r--r-- | source3/libsmb/clifile.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/libsmb/clifile.c b/source3/libsmb/clifile.c index fcf31561be..6e4cf90e51 100644 --- a/source3/libsmb/clifile.c +++ b/source3/libsmb/clifile.c @@ -4214,7 +4214,7 @@ static bool parse_ea_blob(TALLOC_CTX *ctx, const uint8_t *rdata, ea->flags = CVAL(p,0); unix_ea_name[0] = '\0'; - pull_ascii_fstring(unix_ea_name, p + 4); + pull_ascii(unix_ea_name, p + 4, sizeof(unix_ea_name), rdata_len - PTR_DIFF(p+4, rdata), STR_TERMINATE); ea->name = talloc_strdup(ea_list, unix_ea_name); if (!ea->name) { goto fail; |