Fixed broken NULL pointer check.
Fixed uninitialized value.
Fixed uninitialized values in case of error return.
Fixed uninitialized value.
Fixed missing NULL pointer check.
Fixed memory leak.
Fixed memory leak.
Fixed missing declarations.
xfreerdp: use login name if no user name was set

If no user name is set with /u:.. use the login name of the current user will be
used as user name.
xfreerdp: clean up AuthenticationOnly

* removed dead code path: user name is always set now
* update message if no password was set
nego: print message when bypassing gateway

When "detect" is used as gateway usage method (which is the default)
it is tried to by-pass gateway connection for local hosts.
The detection might take some time therefore print a message that people
are aware that a detection is tried.

Fixes #2171
channels/urbdrc: fix segfault

Fix segmentation fault in urbdrc_main.c caused by missing memset.
SmartCard
* Check for NULL parameters in PCSC_ConvertReaderNameToWinSCard (Issue #2184)
* Remove masking of dwEventState as it is not needed under Linux and MacOSX and it helps in ThinLinc environment
* Workaround for Mac OS X Yosemite (10.10) SCardStatus Bug (Issue #2184)
* Since Mac OS Tiger (10.5.6), Apple introduced new function for SCardControl calls named SCardControl132(), the old SCardControl doesn't work (cf. https://opensource.apple.com/source/SmartCardServices/SmartCardServices-55111/src/PCSC/winscard_clnt.c)
* Correct detection of Mac OS X Yosemite Version
Fix cleanup of RDPEI server-side channel
Merge pull request #2268 from hardening/rdpei_cleanup_fix

Fix cleanup of RDPEI server-side channel
Initializing ServerHostname string now with 0
Merge pull request #2272 from akallabeth/ipv6_parser_fix

Fixed conversion of IPv6 to ServerHostname
Merge pull request #2265 from TaGUNil/master

Fix segmentation fault in URBDRC
Merge pull request #2262 from bmiklautz/misc_fixes

Misc fixes