Changeset 467 for branches/samba-3.3.x/source/smbd
- Timestamp:
- Jun 17, 2010, 10:59:42 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/samba-3.3.x/source/smbd/process.c
r338 r467 1646 1646 { 1647 1647 static char *orig_inbuf; 1648 static int orig_size; 1648 1649 1649 1650 /* … … 1680 1681 /* this is the first part of the chain */ 1681 1682 orig_inbuf = inbuf; 1682 } 1683 1683 orig_size = size; 1684 } 1685 1686 /* Validate smb_off2 */ 1687 if ((smb_off2 < smb_wct - 4) || orig_size < (smb_off2 + 4 - smb_wct)) { 1688 exit_server_cleanly("Bad chained packet"); 1689 return; 1690 } 1684 1691 /* 1685 1692 * We need to save the output the caller added to the chain so that we 1686 1693 * can splice it into the final output buffer later. 1687 1694 */ 1695 1696 if (outsize <= smb_wct) { 1697 exit_server_cleanly("Bad chained packet"); 1698 return; 1699 } 1688 1700 1689 1701 caller_outputlen = outsize - smb_wct;
Note:
See TracChangeset
for help on using the changeset viewer.