From 941a199f7d3686b87ddc33baa7c8f85545a5100f Mon Sep 17 00:00:00 2001 From: Sergey Dorofeev Date: Sun, 5 Feb 2012 00:39:52 +0400 Subject: [PATCH] password length limit for netspool --- source/bforce/prot_common.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/bforce/prot_common.c b/source/bforce/prot_common.c index 38701c5..935032e 100644 --- a/source/bforce/prot_common.c +++ b/source/bforce/prot_common.c @@ -105,7 +105,7 @@ static int prot_get_next_file(s_filelist **dest, s_protinfo *pi) log("start netspool"); if(state.netspool.state == NS_NOTINIT) { log("netspool connection"); - char password[9]; + char password[100]; char address[300]; char *host = conf_string(cf_netspool_host); char *port = conf_string(cf_netspool_port); @@ -117,7 +117,7 @@ static int prot_get_next_file(s_filelist **dest, s_protinfo *pi) state.node.addr.zone, state.node.addr.net, state.node.addr.node, state.node.addr.point); if(state.protected) { - session_get_password(state.node.addr, password, 8); + session_get_password(state.node.addr, password, 100); } else { password[0] = 0; }