diff --git a/src/local.c b/src/local.c index 51422956..046e7d6b 100644 --- a/src/local.c +++ b/src/local.c @@ -281,8 +281,8 @@ int pusb_local_login(t_pusb_options *opts, const char *user, const char *service int local_request = 0; char *xrdpSession = getenv("XRDP_SESSION"); - if (xrdpSession == NULL || strncmp(xrdpSession, "\0", 1)) { - log_error("XRDP session detected, denying.\n"); + if (xrdpSession != NULL) { + log_error("XRDP session detected, denying. (value: %s)\n", xrdpSession); return (0); }