aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2012-09-07 13:51:09 -0500
committerTed Gould <ted@gould.cx>2012-09-07 13:51:09 -0500
commit0ca32bf338f8148b1e8399523408d7be10161d26 (patch)
tree9a741fff2295c9c96f687858c30b53fe195a17bb
parentbde3e00851179a1a4d60ebabebc7afb28eaf5462 (diff)
downloadlibpam-freerdp2-0ca32bf338f8148b1e8399523408d7be10161d26.tar.gz
libpam-freerdp2-0ca32bf338f8148b1e8399523408d7be10161d26.tar.bz2
libpam-freerdp2-0ca32bf338f8148b1e8399523408d7be10161d26.zip
Make sure there's a character even if we don't have a domain
-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 */