summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2012-03-22 12:16:17 +0100
committerVolker Lendecke <vl@samba.org>2012-03-22 12:18:34 +0100
commitc6669677b1e9628e60c1ffb21a0e8c2516106c50 (patch)
tree4d09ca0915f464218f25161c9b45bd551e36513f /source3
parent2351d74a03d90dea419e83852b83ada8392cda46 (diff)
downloadsamba-c6669677b1e9628e60c1ffb21a0e8c2516106c50.tar.gz
samba-c6669677b1e9628e60c1ffb21a0e8c2516106c50.tar.bz2
samba-c6669677b1e9628e60c1ffb21a0e8c2516106c50.zip
s3-libsmb: Fix parsing a notify response
Diffstat (limited to 'source3')
-rw-r--r--source3/libsmb/clifile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/libsmb/clifile.c b/source3/libsmb/clifile.c
index 3adc61559d..a25eb4636e 100644
--- a/source3/libsmb/clifile.c
+++ b/source3/libsmb/clifile.c
@@ -5028,7 +5028,7 @@ static void cli_notify_done(struct tevent_req *subreq)
ssize_t ret;
char *name;
- if ((next != 0) && (len+12 != next)) {
+ if (trans_oob(num_params, ofs + 12, len)) {
TALLOC_FREE(params);
tevent_req_nterror(
req, NT_STATUS_INVALID_NETWORK_RESPONSE);