From 53fc7eaf03d039dee4da8491856a77f31beb8854 Mon Sep 17 00:00:00 2001 From: Matt Johnston Date: Mon, 28 Feb 2011 13:39:18 +0000 Subject: Compile fix for when both client and server agent forwarding is disabled --HG-- extra : convert_revision : 8a608f0ed5e4b491dba4bf330e560636ec7376fd --- svr-chansession.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'svr-chansession.c') diff --git a/svr-chansession.c b/svr-chansession.c index 1b5fcc6..a914f25 100644 --- a/svr-chansession.c +++ b/svr-chansession.c @@ -240,7 +240,7 @@ static int newchansess(struct Channel *channel) { chansess->x11authcookie = NULL; #endif -#ifndef DISABLE_AGENTFWD +#ifdef ENABLE_AGENTFWD chansess->agentlistener = NULL; chansess->agentfile = NULL; chansess->agentdir = NULL; @@ -293,7 +293,7 @@ static void closechansess(struct Channel *channel) { x11cleanup(chansess); #endif -#ifndef DISABLE_AGENTFWD +#ifdef ENABLE_AGENTFWD svr_agentcleanup(chansess); #endif @@ -351,7 +351,7 @@ static void chansessionrequest(struct Channel *channel) { } else if (strcmp(type, "x11-req") == 0) { ret = x11req(chansess); #endif -#ifndef DISABLE_AGENTFWD +#ifdef ENABLE_AGENTFWD } else if (strcmp(type, "auth-agent-req@openssh.com") == 0) { ret = svr_agentreq(chansess); #endif @@ -937,7 +937,7 @@ static void execchild(void *user_data) { /* set up X11 forwarding if enabled */ x11setauth(chansess); #endif -#ifndef DISABLE_AGENTFWD +#ifdef ENABLE_AGENTFWD /* set up agent env variable */ svr_agentset(chansess); #endif -- cgit v1.2.3