diff options
author | Ted Gould <ted@gould.cx> | 2012-09-07 13:51:09 -0500 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2012-09-07 13:51:09 -0500 |
commit | 1aca36b6342d3acc58714a17be27d5c1e94e35da (patch) | |
tree | 9a741fff2295c9c96f687858c30b53fe195a17bb /src | |
parent | a969367b285937c6eae4299c5b16d7b2b647f540 (diff) | |
download | libpam-x2go-1aca36b6342d3acc58714a17be27d5c1e94e35da.tar.gz libpam-x2go-1aca36b6342d3acc58714a17be27d5c1e94e35da.tar.bz2 libpam-x2go-1aca36b6342d3acc58714a17be27d5c1e94e35da.zip |
Make sure there's a character even if we don't have a domain
Diffstat (limited to 'src')
-rw-r--r-- | src/pam-freerdp.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/pam-freerdp.c b/src/pam-freerdp.c index fde3202..ebc98af 100644 --- a/src/pam-freerdp.c +++ b/src/pam-freerdp.c @@ -335,6 +335,10 @@ session_socket_handler (struct passwd * pwdent, int readypipe, const char * ruse return EXIT_FAILURE; } + if (rdomain[0] == '\0') { + rdomain = "."; + } + /* Build this up as a buffer so we can just write it and see that very, very clearly */ buffer_len += strlen(ruser) + 1; /* Add one for the space */ |