fix uninitialised variable
authorDavid Fort <contact@hardening-consulting.com>
Thu, 1 Nov 2018 09:45:56 +0000 (10:45 +0100)
committerDavid Fort <contact@hardening-consulting.com>
Thu, 1 Nov 2018 10:07:36 +0000 (11:07 +0100)
Otherwise we can run in troubles when sending logon_info_v2 packets

libfreerdp/core/info.c

index 43bb136..0e64366 100644 (file)
@@ -1335,7 +1335,7 @@ static BOOL rdp_write_logon_info_v2(wStream* s, logon_info* info)
 {
        int Size = 2 + 4 + 4 + 4 + 4 + 558;
        int domainLen, usernameLen, len;
-       WCHAR* wString;
+       WCHAR* wString = NULL;
 
        if (!Stream_EnsureRemainingCapacity(s, Size))
                return FALSE;