diff options
-rw-r--r-- | source3/libsmb/smb2cli_create.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/libsmb/smb2cli_create.c b/source3/libsmb/smb2cli_create.c index ecb220d4ac..50c9816ded 100644 --- a/source3/libsmb/smb2cli_create.c +++ b/source3/libsmb/smb2cli_create.c @@ -112,7 +112,7 @@ struct tevent_req *smb2cli_create_send( SIVAL(fixed, 48, blobs_offset + SMB2_HDR_BODY + 56); SIVAL(fixed, 52, blob.length); - dyn_len = blobs_offset + blob.length; + dyn_len = MAX(1, blobs_offset + blob.length); dyn = talloc_zero_array(state, uint8_t, dyn_len); if (tevent_req_nomem(dyn, req)) { return tevent_req_post(req, ev); |