diff options
Diffstat (limited to 'src/actions.c')
-rw-r--r-- | src/actions.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/actions.c b/src/actions.c index 1078ebe3f..9a4a2c23e 100644 --- a/src/actions.c +++ b/src/actions.c @@ -245,8 +245,12 @@ char *common_get_vident(User * u) /* ptlink hack since there is no user mode for vhost, simply compare the host to the vhost struct memember */ - } else if (stricmp(u->vident, u->username)) { - return u->vident; + } else if (u->vident) { + if (stricmp(u->vident, u->username)) { + return u->vident; + } else { + return u->username; + } } else { return u->username; } |