summaryrefslogtreecommitdiff
path: root/libtac/lib/author_s.c
diff options
context:
space:
mode:
Diffstat (limited to 'libtac/lib/author_s.c')
-rw-r--r--libtac/lib/author_s.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libtac/lib/author_s.c b/libtac/lib/author_s.c
index 56f1a97..7c18400 100644
--- a/libtac/lib/author_s.c
+++ b/libtac/lib/author_s.c
@@ -63,7 +63,7 @@ int tac_author_send(int fd, const char *user, char *tty, char *r_addr,
tb.authen_method = tac_authen_method;
tb.priv_lvl = tac_priv_lvl;
- if (tac_login == NULL) {
+ if (!*tac_login) {
/* default to PAP */
tb.authen_type = TAC_PLUS_AUTHEN_TYPE_PAP;
} else {