diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2002-03-16 19:48:58 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2002-03-16 19:48:58 +0000 |
commit | 5d4f7c2e3362875d0db1af6474d77a0f48ee7baf (patch) | |
tree | a19982acb84aea9babce7cd9c8a0ca3a4b916c45 | |
parent | 79b17a9b4c1a6bc5027e1a05ef18325027b41175 (diff) |
Add missing auth_close() and login_close() calls.
-rw-r--r-- | libexec/rexecd/rexecd.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/libexec/rexecd/rexecd.c b/libexec/rexecd/rexecd.c index 7a1d90a76f7..8eb434b4708 100644 --- a/libexec/rexecd/rexecd.c +++ b/libexec/rexecd/rexecd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rexecd.c,v 1.20 2002/03/16 18:44:48 millert Exp $ */ +/* $OpenBSD: rexecd.c,v 1.21 2002/03/16 19:48:57 millert Exp $ */ /* * Copyright (c) 1983 The Regents of the University of California. @@ -41,7 +41,7 @@ char copyright[] = #ifndef lint /*static char sccsid[] = "from: @(#)rexecd.c 5.12 (Berkeley) 2/25/91";*/ -static char rcsid[] = "$OpenBSD: rexecd.c,v 1.20 2002/03/16 18:44:48 millert Exp $"; +static char rcsid[] = "$OpenBSD: rexecd.c,v 1.21 2002/03/16 19:48:57 millert Exp $"; #endif /* not lint */ #include <sys/param.h> @@ -286,6 +286,8 @@ doit(f, fromp) err(1, "unable to set user context"); if (auth_approval(as, lc, pwd->pw_name, "rexec") <= 0) err(1, "approval failure"); + auth_close(as); + login_close(lc); cp = strrchr(pwd->pw_shell, '/'); if (cp) |