1
0
mirror of https://github.com/samba-team/samba.git synced 2025-11-20 08:23:50 +03:00

After talking with Jeremy and JF (and staring at packet traces between

NT <-> NT), I've come to realize that UNISTR2 strings should be NULL
terminated.




jerry
This commit is contained in:
Gerald Carter
-
parent a290107aee
commit c8f9e54bea
2 changed files with 55 additions and 3 deletions

View File

@@ -171,7 +171,9 @@ typedef struct unistr2_info
uint32 uni_max_len;
uint32 undoc;
uint32 uni_str_len;
/* unicode characters. ***MUST*** be little-endian. **NOT** necessarily null-terminated */
/* unicode characters. ***MUST*** be little-endian.
**must** be null-terminated and the uni_str_len should include
the NULL character */
uint16 *buffer;
} UNISTR2;