diff options
author | Ted Gould <ted@gould.cx> | 2012-09-10 13:26:25 +0000 |
---|---|---|
committer | Tarmac <> | 2012-09-10 13:26:25 +0000 |
commit | 0be6edb877829f491d491e8b0fb7d06916bef499 (patch) | |
tree | 9a741fff2295c9c96f687858c30b53fe195a17bb /src | |
parent | a969367b285937c6eae4299c5b16d7b2b647f540 (diff) | |
parent | 1aca36b6342d3acc58714a17be27d5c1e94e35da (diff) | |
download | libpam-x2go-0be6edb877829f491d491e8b0fb7d06916bef499.tar.gz libpam-x2go-0be6edb877829f491d491e8b0fb7d06916bef499.tar.bz2 libpam-x2go-0be6edb877829f491d491e8b0fb7d06916bef499.zip |
Add a '.' for a blank domain. Approved by Albert Astals Cid, jenkins.
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 */ |