summaryrefslogtreecommitdiffhomepage
path: root/svr-agentfwd.c
diff options
context:
space:
mode:
Diffstat (limited to 'svr-agentfwd.c')
-rw-r--r--svr-agentfwd.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/svr-agentfwd.c b/svr-agentfwd.c
index 6946d1d..87a1078 100644
--- a/svr-agentfwd.c
+++ b/svr-agentfwd.c
@@ -39,6 +39,7 @@
#include "buffer.h"
#include "random.h"
#include "listener.h"
+#include "auth.h"
#define AGENTDIRPREFIX "/tmp/dropbear-"
@@ -52,6 +53,10 @@ int agentreq(struct ChanSess * chansess) {
int fd;
+ if (!svr_pubkey_allows_agentfwd()) {
+ return DROPBEAR_FAILURE;
+ }
+
if (chansess->agentlistener != NULL) {
return DROPBEAR_FAILURE;
}