Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 45799
b: refs/heads/master
c: 8e6f195
h: refs/heads/master
i:
  45797: f28af37
  45795: 613a09a
  45791: 57ef23c
v: v3
  • Loading branch information
Steve French committed Jan 22, 2007
1 parent dce69bd commit e657cc4
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: bd2abf177b3384375c43906be551d976e4c18166
refs/heads/master: 8e6f195af0e1f226e9b2e0256af8df46adb9d595
13 changes: 8 additions & 5 deletions trunk/fs/cifs/sess.c
Original file line number Diff line number Diff line change
Expand Up @@ -182,11 +182,14 @@ static int decode_unicode_ssetup(char ** pbcc_area, int bleft, struct cifsSesInf
cFYI(1,("bleft %d",bleft));


/* word align, if bytes remaining is not even */
if(bleft % 2) {
bleft--;
data++;
}
/* SMB header is unaligned, so cifs servers word align start of
Unicode strings */
data++;
bleft--; /* Windows servers do not always double null terminate
their final Unicode string - in which case we
now will not attempt to decode the byte of junk
which follows it */

words_left = bleft / 2;

/* save off server operating system */
Expand Down

0 comments on commit e657cc4

Please sign in to comment.