projects
/
platform
/
upstream
/
freerdp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8479c82
)
NLA: Fixed length check.
author
Armin Novak
<armin.novak@thincast.com>
Wed, 1 Jul 2015 14:05:11 +0000
(16:05 +0200)
committer
Armin Novak
<armin.novak@thincast.com>
Wed, 1 Jul 2015 14:05:11 +0000
(16:05 +0200)
libfreerdp/core/nla.c
patch
|
blob
|
history
diff --git
a/libfreerdp/core/nla.c
b/libfreerdp/core/nla.c
index
c2c742d
..
88192b9
100644
(file)
--- a/
libfreerdp/core/nla.c
+++ b/
libfreerdp/core/nla.c
@@
-929,9
+929,12
@@
BOOL nla_read_ts_password_creds(rdpNla* nla, wStream* s)
nla->identity->Password = NULL;
nla->identity->PasswordLength = (UINT32) 0;
+ if (!ber_read_sequence_tag(s, &length))
+ return FALSE;
+
/* The sequence is empty, return early,
* TSPasswordCreds (SEQUENCE) is optional. */
- if (
!ber_read_sequence_tag(s, &length)
)
+ if (
length == 0
)
return TRUE;
/* [0] domainName (OCTET STRING) */