Skip to content

Commit

Permalink
Fix if
Browse files Browse the repository at this point in the history
  • Loading branch information
mcdope committed Jul 4, 2024
1 parent 3c37396 commit 242026d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/local.c
Original file line number Diff line number Diff line change
Expand Up @@ -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");

Check warning

Code scanning / devskim

These functions are historically error-prone and have been associated with a significant number of vulnerabilities. Most of these functions have safer alternatives, such as replacing 'strcpy' with 'strlcpy' or 'strcpy_s'. Warning

Banned C function detected
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);
}

Expand Down

0 comments on commit 242026d

Please sign in to comment.