2
0
mirror of https://github.com/sudo-project/sudo.git synced 2025-08-31 22:35:10 +00:00

Fix typo that broke short host name matching when the fqdn

flag is enabled.  Bug #757
This commit is contained in:
Todd C. Miller
2016-09-09 16:26:22 -06:00
parent 3f022419ae
commit ead485b96b

View File

@@ -1069,7 +1069,7 @@ cb_fqdn(const union sudo_defs_val *sd_un)
/* Not remote, just use user_host. */ /* Not remote, just use user_host. */
if ((lhost = strdup(user_host)) != NULL) { if ((lhost = strdup(user_host)) != NULL) {
if (user_shost != user_host) if (user_shost != user_host)
shost = strdup(lhost); shost = strdup(user_shost);
else else
shost = lhost; shost = lhost;
} }