summaryrefslogtreecommitdiff
path: root/svr-agentfwd.c
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2004-06-01 04:20:12 +0000
committerMatt Johnston <matt@ucc.asn.au>2004-06-01 04:20:12 +0000
commit58e9df28e46c447b3390da01f2adba63b616c2a7 (patch)
tree2f7ab3e87f9dfd99e0692fd536b5b2b678c6bba5 /svr-agentfwd.c
parentd53c6e53ee09a98198f57c5dfa18416040d3ce99 (diff)
downloaddropbear-58e9df28e46c447b3390da01f2adba63b616c2a7.tar.gz
syntactical fixups - it compiles, but channel handling code requires fixing.
Diffstat (limited to 'svr-agentfwd.c')
-rw-r--r--svr-agentfwd.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/svr-agentfwd.c b/svr-agentfwd.c
index c4958c4..f8af30e 100644
--- a/svr-agentfwd.c
+++ b/svr-agentfwd.c
@@ -141,8 +141,8 @@ void agentcleanup(struct ChanSess * chansess) {
* for themselves */
uid = getuid();
gid = getgid();
- if ((setegid(ses.authstate.pw->pw_gid)) < 0 ||
- (seteuid(ses.authstate.pw->pw_uid)) < 0) {
+ if ((setegid(svr_ses.authstate.pw->pw_gid)) < 0 ||
+ (seteuid(svr_ses.authstate.pw->pw_uid)) < 0) {
dropbear_exit("failed to set euid");
}
@@ -194,8 +194,8 @@ static int bindagent(struct ChanSess * chansess) {
/* drop to user privs to make the dir/file */
uid = getuid();
gid = getgid();
- if ((setegid(ses.authstate.pw->pw_gid)) < 0 ||
- (seteuid(ses.authstate.pw->pw_uid)) < 0) {
+ if ((setegid(svr_ses.authstate.pw->pw_gid)) < 0 ||
+ (seteuid(svr_ses.authstate.pw->pw_uid)) < 0) {
dropbear_exit("failed to set euid");
}