Armin Novak
6698e24228
Fixed leaks, NULL dereferences and broken init.
2015-06-23 21:29:21 +02:00
Bernhard Miklautz
bf73f4e4f1
Fix unchecked strdups
...
* add missing checks
* adapt function return values where necessary
* add initial test for settings
2015-06-22 19:09:59 +02:00
Armin Novak
3c329aa207
Using InitSecurityInterfaceEx(0) now.
2015-06-17 13:23:44 +02:00
Armin Novak
34253f2664
Let SSPI module choose which implementation to use.
2015-06-15 15:21:21 +02:00
David FORT
84ae1d1cfb
Take in account nfedera's remarks
2015-05-29 14:24:14 +02:00
David FORT
a9709a62cc
Check some return values
2015-05-29 14:24:14 +02:00
David FORT
909a965fe9
Added misc checks in rdg.c
2015-05-29 14:24:14 +02:00
Martin Haimberger
951a2d2210
stream: check stream_new in winpr and libfreerdp
...
also fixed a few things
2015-05-29 04:46:50 -07:00
Hardening
f8120919af
Add checks for some XXX_New and XXX_Add functions
...
Based on PR #2616
2015-05-18 11:28:00 +02:00
Norbert Federa
1eff1a345e
free can handle NULL perfectly fine
2015-05-11 09:07:39 +02:00
Armin Novak
d98e485ac0
Fixed some type mismatches.
2015-04-21 12:35:55 +02:00
Armin Novak
d3336340ba
Add *get_event_handles handle count, return check.
2015-04-21 12:24:50 +02:00
Daniel Bungert
0a1273e508
GW RPC-HTTP - Don't drop 4 byte stub from the pipe
...
* Though not frequent, it's possible to get TsProxySetupReceivePipe
data of stublength 4 that is actual data. This happens when
header->common.call_id == rpc->PipeCallId &&
!(header->common.pfc_flags & PFC_LAST_FRAG).
This should address GW disconnects that manifest as SSL read errors.
2015-04-10 15:09:54 -06:00
Daniel Bungert
3910baf49d
GW RPC-HTTP login fix
...
* f469e069dc
introduced a logic flip
that broke RPC-HTTP Gateway. Fix that.
2015-04-10 14:50:17 -06:00
Bernhard Miklautz
74c8400789
coding style fixes
...
Add missing space after if
2015-03-30 17:15:45 +02:00
Bernhard Miklautz
f469e069dc
stream: Stream_Ensure*Capacity: change return type
...
Change the return type of Stream_Ensure*Capacity from void to BOOL to be
able to detect realloc problems easily. Otherwise the only way to detect
this was to check if the capacity after the call was >= the required
size.
In case Stream_Ensure*Capacity fails the old memory is still available
and need to freed outside.
This commit also adds checks to most calls of Stream_Ensure*Capacity to
check if the call was successful.
2015-03-30 16:33:48 +02:00
Bernhard Miklautz
7f3326d41c
Fix compiler warnings
...
gcc 4.7.2
* warning: value computed is not used [-Wunused-value]
* warning: unused variable ‘oss’ [-Wunused-variable]
2015-03-25 17:38:21 +01:00
Marc-André Moreau
cb8e61cf99
libfreerdp-core: fix rdg.c header include
2015-03-19 12:13:37 -04:00
Marc-André Moreau
69f4d78785
libfreerdp-core: fix rdg.h header include
2015-03-19 12:08:30 -04:00
Marc-André Moreau
6202f48c12
libfreerdp-core: add configurable TSG/RGB fallback, fix edge cases
2015-03-19 11:44:47 -04:00
Marc-André Moreau
a2ff1e8348
Merge branch 'gateway' of https://github.com/dvincent-devolutions/FreeRDP into gateway
2015-03-19 09:41:50 -04:00
Denis Vincent
08a3d40ef8
libfreerdp-core: minor code corrections
2015-03-19 09:17:56 -04:00
Denis Vincent
205ccb70c8
libfreerdp-core: added fallback to RPC.
2015-03-18 16:13:32 -04:00
Marc-André Moreau
1380895a2a
libfreerdp-core: fix RDG http receive
2015-03-18 09:48:21 -04:00
Marc-André Moreau
3c4bee3d95
libfreerdp-core: fix RDG valgrind issues
2015-03-17 16:54:45 -04:00
Marc-André Moreau
dc913d9f2c
libfreerdp-core: fix some RDG valgrind issues
2015-03-17 16:09:17 -04:00
Marc-André Moreau
360e2c5e4e
libfreerdp-core: fix rdg event handles
2015-03-17 15:13:11 -04:00
Marc-André Moreau
bdf17450e5
Merge branch 'gateway' of https://github.com/dvincent-devolutions/FreeRDP into gateway
2015-03-17 14:54:04 -04:00
Denis Vincent
144d0d9b23
libfreerdp-core: Initial RDG support.
2015-03-17 14:54:16 -04:00
Marc-André Moreau
afdd55fa81
Merge branch 'master' of github.com:FreeRDP/FreeRDP
2015-03-13 15:30:31 -04:00
Zhang Zhaolong
4b618852e4
core/gateway: fix memory leak of packet.
...
Signed-off-by: Zhang Zhaolong <zhangzl2013@126.com>
2015-03-13 11:26:22 +08:00
Marc-André Moreau
8ee4cbdffd
Merge branch 'gateway' of https://github.com/dvincent-devolutions/FreeRDP
2015-02-26 09:08:56 -05:00
Marc-André Moreau
1416ef8017
libfreerdp-core: fix tsg receiving of text/html content
2015-02-24 16:39:00 -05:00
Denis Vincent
baab23fd14
libfreerdp-core: Make tsg out channel recycling event driven
2015-02-24 15:34:41 -05:00
Marc-André Moreau
65b2842792
libfreerdp-core: improve RTS PDU receiving
2015-02-19 16:06:20 -05:00
Marc-André Moreau
b5f1958b69
libfreerdp-core: cleanup channel recycling
2015-02-19 15:06:57 -05:00
Marc-André Moreau
dfee7710e1
Merge branch 'gateway' of https://github.com/dvincent-devolutions/FreeRDP into gateway
2015-02-19 14:11:12 -05:00
Denis Vincent
3e90726bac
libfreerdp-core: add TS Gateway out channel recycling support
2015-02-19 13:41:00 -05:00
Marc-André Moreau
44d06888bb
libfreerdp-core: fix BIO leaks
2015-02-18 15:36:57 -05:00
Marc-André Moreau
2f4a305c67
libfreerdp-core: fix tsg_get_event_handles
2015-02-18 13:50:03 -05:00
Marc-André Moreau
0e57706de5
libfreerdp-core: cleanup connect error codes, fix Win32 NLA
2015-02-17 21:01:27 -05:00
Marc-André Moreau
c2a107ac9d
libfreerdp-core: initial support for tsg silent reauth
2015-02-17 16:36:01 -05:00
Marc-André Moreau
3b622d15d1
libfreerdp-core: refactor TsProxy* calls
2015-02-17 16:15:57 -05:00
Marc-André Moreau
b8b94327c8
libfreerdp-core: improve tsg debug output and reauth sequence
2015-02-17 14:34:42 -05:00
Marc-André Moreau
668b2c1811
libfreerdp-core: fix tsg buffer flushing
2015-02-17 10:54:39 -05:00
Marc-André Moreau
7639addb40
libfreerdp-core: partial tsg reauth support
2015-02-16 15:35:51 -05:00
Marc-André Moreau
ffe24e8cfb
libfreerdp-core: improve TSProxyCreateTunnelRequest
2015-02-15 18:22:49 -05:00
Marc-André Moreau
991f7b347d
libfreerdp-core: further abstract multiple connections used internally by tsg from rdpTransport
2015-02-15 10:06:17 -05:00
Marc-André Moreau
edfc5120b7
libfreerdp-core: replace rdpTcp by BufferedSocket BIO
2015-02-14 10:14:13 -05:00
Marc-André Moreau
b7a619ff8a
libfreerdp-core: move some rdpTcp operations under BIO layer
2015-02-13 14:26:02 -05:00