Merge pull request #204 from uglym8/allow_short_passwords

Allow single character passwords
This commit is contained in:
Henrik Andersson 2017-12-04 09:03:14 +01:00 committed by GitHub
commit 5961aabc00
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -674,7 +674,7 @@ main(int argc, char *argv[])
break;
case 'p':
if ((optarg[0] != '-') && (optarg[1] != 0))
if (!((optarg[0] == '-') && (optarg[1] == 0)))
{
STRNCPY(g_password, optarg, sizeof(g_password));
flags |= RDP_INFO_AUTOLOGON;