summaryrefslogtreecommitdiff
path: root/libexec
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2002-06-28 00:52:27 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2002-06-28 00:52:27 +0000
commitef330dc8ca7e51c297aefc6ab01faa488d3788b5 (patch)
treed14095140992141b57fc4d93a865a4a79223c7b1 /libexec
parent6d3f0e82d41522c4925339147c5288bcb4f9595f (diff)
When gettytab doesn't exist, IM contains a #defined string so don't
try to free() it in that case.
Diffstat (limited to 'libexec')
-rw-r--r--libexec/telnetd/telnetd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libexec/telnetd/telnetd.c b/libexec/telnetd/telnetd.c
index 71e78ca16bd..649d32a2b07 100644
--- a/libexec/telnetd/telnetd.c
+++ b/libexec/telnetd/telnetd.c
@@ -978,7 +978,7 @@ my_telnet(int f, int p, const char *host, const char *utmp_host,
free(he);
if (hostinfo && *IM)
putf(IM, ptyibuf2);
- if (*IM)
+ if (IM != DEFAULT_IM && *IM)
free(IM);
if (pcc)