diff options
author | jsorg71 <jsorg71> | 2005-11-05 05:58:33 +0000 |
---|---|---|
committer | jsorg71 <jsorg71> | 2005-11-05 05:58:33 +0000 |
commit | fcf5268c5bd24054f61c3385ae03ce1290f371ec (patch) | |
tree | 7061657bd120bf4af62bbaadfbc391e8743aa0ae /rdp/rdp_lic.c | |
parent | 8bb8df0a3bb0aaa74544c5352738ecb77ad5cfee (diff) | |
download | xrdp-proprietary-fcf5268c5bd24054f61c3385ae03ce1290f371ec.tar.gz xrdp-proprietary-fcf5268c5bd24054f61c3385ae03ce1290f371ec.zip |
some minor bugs
Diffstat (limited to 'rdp/rdp_lic.c')
-rw-r--r-- | rdp/rdp_lic.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/rdp/rdp_lic.c b/rdp/rdp_lic.c index bc4d7283..5efa776b 100644 --- a/rdp/rdp_lic.c +++ b/rdp/rdp_lic.c @@ -29,6 +29,7 @@ rdp_lic_create(struct rdp_sec* owner) struct rdp_lic* self; self = (struct rdp_lic*)g_malloc(sizeof(struct rdp_lic), 1); + self->sec_layer = owner; return self; } @@ -126,8 +127,8 @@ rdp_lic_send_request(struct rdp_lic* self, char* client_random, struct stream* s; sec_flags = SEC_LICENCE_NEG; - userlen = g_strlen(self->sec_layer->rdp_layer->mod->username) + 1; - hostlen = g_strlen(self->sec_layer->rdp_layer->mod->hostname) + 1; + userlen = g_strlen(user) + 1; + hostlen = g_strlen(host) + 1; length = 128 + userlen + hostlen; make_stream(s); init_stream(s, 8192); |