diff options
author | Mike Belopuhov <mikeb@cvs.openbsd.org> | 2007-10-31 21:13:46 +0000 |
---|---|---|
committer | Mike Belopuhov <mikeb@cvs.openbsd.org> | 2007-10-31 21:13:46 +0000 |
commit | 17be099628eed654f9272ab02e382eb5ee5281ea (patch) | |
tree | 073b671f9bed4a2f3e5abe6a587b60b2f2e00bb1 /sbin | |
parent | ef524d7a2fcc5dfaa8be32bc70c5398912d1a96d (diff) |
Don't leak potentially secret authname through ioctl interface.
Suggestions from mpf@ and canacar@
ok deraadt mpf canacar
Diffstat (limited to 'sbin')
-rw-r--r-- | sbin/ifconfig/ifconfig.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sbin/ifconfig/ifconfig.c b/sbin/ifconfig/ifconfig.c index 020ced97f95..7aecabbe2ce 100644 --- a/sbin/ifconfig/ifconfig.c +++ b/sbin/ifconfig/ifconfig.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ifconfig.c,v 1.188 2007/10/09 21:41:54 joel Exp $ */ +/* $OpenBSD: ifconfig.c,v 1.189 2007/10/31 21:13:41 mikeb Exp $ */ /* $NetBSD: ifconfig.c,v 1.40 1997/10/01 02:19:43 enami Exp $ */ /* @@ -3452,7 +3452,8 @@ sppp_printproto(const char *name, struct sauth *auth) printf("0x%04x ", auth->proto); break; } - printf("%sname \"%.*s\" ", name, AUTHNAMELEN, auth->name); + if (auth->name[0]) + printf("%sname \"%.*s\" ", name, AUTHNAMELEN, auth->name); } void |