mirror of
https://github.com/sudo-project/sudo.git
synced 2025-08-31 14:25:15 +00:00
Fix typo that broke short host name matching when the fqdn
flag is enabled. Bug #757
This commit is contained in:
@@ -1069,7 +1069,7 @@ cb_fqdn(const union sudo_defs_val *sd_un)
|
||||
/* Not remote, just use user_host. */
|
||||
if ((lhost = strdup(user_host)) != NULL) {
|
||||
if (user_shost != user_host)
|
||||
shost = strdup(lhost);
|
||||
shost = strdup(user_shost);
|
||||
else
|
||||
shost = lhost;
|
||||
}
|
||||
|
Reference in New Issue
Block a user