smb2_neg_context
if (len < nc_offset + (neg_count * sizeof(struct smb2_neg_context))) {
- sizeof(struct smb2_neg_context));
sizeof(struct smb2_neg_context) +
return ALIGN(le16_to_cpu(pneg_ctxt->DataLength) + sizeof(struct smb2_neg_context), 8);
struct smb2_neg_context *pctx;
if (len_of_ctxts < sizeof(struct smb2_neg_context))
pctx = (struct smb2_neg_context *)(offset + (char *)rsp);
clen = sizeof(struct smb2_neg_context)
ctxt_size += sizeof(struct smb2_neg_context) +
sizeof(struct smb2_neg_context) + MIN_PREAUTH_CTXT_DATA_LEN)
if (sizeof(struct smb2_neg_context) + 10 > ctxt_len) {
if (sizeof(struct smb2_neg_context) + 8 + algs_size > ctxt_len) {
struct smb2_neg_context *pctx = (struct smb2_neg_context *)req;
if (len_of_ctxts < (int)sizeof(struct smb2_neg_context))
pctx = (struct smb2_neg_context *)((char *)pctx + offset);
ctxt_len = clen + sizeof(struct smb2_neg_context);
- sizeof(struct smb2_neg_context));