Fix sigsegv while using credssp and kerberos without

specifying domainname as argument.



git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1824 423420c4-83ab-492f-b58f-81f9feb106b5
This commit is contained in:
Henrik Andersson 2014-08-27 12:15:21 +00:00
parent d70b65edc7
commit 78a4f41f48

3
rdp.c
View File

@ -189,6 +189,9 @@ rdp_send_data(STREAM s, uint8 data_pdu_type)
void void
rdp_out_unistr(STREAM s, char *string, int len) rdp_out_unistr(STREAM s, char *string, int len)
{ {
if (string == NULL || len == 0)
return;
#ifdef HAVE_ICONV #ifdef HAVE_ICONV
size_t ibl = strlen(string), obl = len + 2; size_t ibl = strlen(string), obl = len + 2;
static iconv_t iconv_h = (iconv_t) - 1; static iconv_t iconv_h = (iconv_t) - 1;