Commit 37d7f1d
committed
Fix alignment for NetShareEnum request handling
The missing alignment meant that the info level was being misread if the host
name of the server had an even number of characters, because in that case the
end of the string ended up not being 4-byte-aligned.
This meant that the info level was being misread as e.g. 65536 instead of 1,
which had the ultimate result that instead of success and a list of the
available shares, an error message would be sent back and the server couldn't be
accessed.1 parent 4363869 commit 37d7f1d
1 file changed
Lines changed: 1 addition & 1 deletion
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
140 | 140 | | |
141 | 141 | | |
142 | 142 | | |
143 | | - | |
| 143 | + | |
144 | 144 | | |
145 | 145 | | |
146 | 146 | | |
| |||
0 commit comments