]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3-libsmb: Fix parsing a notify response
authorVolker Lendecke <vl@samba.org>
Thu, 22 Mar 2012 11:16:17 +0000 (12:16 +0100)
committerVolker Lendecke <vl@samba.org>
Thu, 22 Mar 2012 11:18:34 +0000 (12:18 +0100)
source3/libsmb/clifile.c

index 3adc61559dd44a6b69aac4f5a6dbf390c89394c5..a25eb4636e473c759bf69045897b307b40711214 100644 (file)
@@ -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);