aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2012-09-10 13:26:25 +0000
committerTarmac <Unknown>2012-09-10 13:26:25 +0000
commitb7d9fbfb09f346f8d597b00daca797b2812de5ac (patch)
tree9a741fff2295c9c96f687858c30b53fe195a17bb /src
parentbde3e00851179a1a4d60ebabebc7afb28eaf5462 (diff)
parent0ca32bf338f8148b1e8399523408d7be10161d26 (diff)
downloadlibpam-freerdp2-b7d9fbfb09f346f8d597b00daca797b2812de5ac.tar.gz
libpam-freerdp2-b7d9fbfb09f346f8d597b00daca797b2812de5ac.tar.bz2
libpam-freerdp2-b7d9fbfb09f346f8d597b00daca797b2812de5ac.zip
Add a '.' for a blank domain. Approved by Albert Astals Cid, jenkins.
Diffstat (limited to 'src')
-rw-r--r--src/pam-freerdp.c4
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 */