summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--usr/src/cmd/cmd-inet/usr.sbin/in.telnetd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/src/cmd/cmd-inet/usr.sbin/in.telnetd.c b/usr/src/cmd/cmd-inet/usr.sbin/in.telnetd.c
index 896b46eb2b..181e6cbabe 100644
--- a/usr/src/cmd/cmd-inet/usr.sbin/in.telnetd.c
+++ b/usr/src/cmd/cmd-inet/usr.sbin/in.telnetd.c
@@ -3046,7 +3046,7 @@ doit(int f, struct sockaddr_storage *who)
* Show banner that getty never gave, but
* only if the user did not automatically authenticate.
*/
- if (getenv("USER") == '\0' && auth_status < AUTH_USER)
+ if (getenv("USER") == NULL && auth_status < AUTH_USER)
showbanner();
/*