projects
/
srvx.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Properly check for fake idents when checking for user matches.
[srvx.git]
/
src
/
proto-common.c
diff --git
a/src/proto-common.c
b/src/proto-common.c
index c318a95f05f6763f1a3a2b8a54cf9722a5d83110..c04fd712962e28e21faff9570f2e5418b51c4a44 100644
(file)
--- a/
src/proto-common.c
+++ b/
src/proto-common.c
@@
-737,6
+737,8
@@
generate_hostmask(struct userNode *user, int options)
ident = user->ident;
else if (options & GENMASK_ANY_IDENT)
ident = "*";
+ else if (IsFakeIdent(user) && IsHiddenHost(user) && !(options & GENMASK_NO_HIDING))
+ ident = user->fakeident;
else {
ident = alloca(strlen(user->ident)+2);
ident[0] = '*';