diff options
author | Pierre Ossman <ossman@cendio.se> | 2023-01-10 19:26:48 +0100 |
---|---|---|
committer | Pierre Ossman <ossman@cendio.se> | 2023-02-04 14:03:13 +0100 |
commit | 741300728a889b4ccaec35bd57efb072018c860c (patch) | |
tree | 1531c90303a6379a89966946c7e341fafb8ec18f /common/rfb/UnixPasswordValidator.cxx | |
parent | 77f0a61ec8f1488d6042b1370444bb2612604292 (diff) | |
download | tigervnc-741300728a889b4ccaec35bd57efb072018c860c.tar.gz tigervnc-741300728a889b4ccaec35bd57efb072018c860c.zip |
Use StringParameters directly
We don't need to make extra copies of the string in most cases, so let's
simplify the code and access the string directly when we can.
Diffstat (limited to 'common/rfb/UnixPasswordValidator.cxx')
-rw-r--r-- | common/rfb/UnixPasswordValidator.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/common/rfb/UnixPasswordValidator.cxx b/common/rfb/UnixPasswordValidator.cxx index fa1513a4..57fa9b39 100644 --- a/common/rfb/UnixPasswordValidator.cxx +++ b/common/rfb/UnixPasswordValidator.cxx @@ -41,6 +41,5 @@ bool UnixPasswordValidator::validateInternal(SConnection * /*sc*/, const char *username, const char *password) { - CharArray service(strDup(pamService.getData())); - return do_pam_auth(service.buf, username, password); + return do_pam_auth(pamService, username, password); } |