Commit 9f674382 authored by Matt Johnston's avatar Matt Johnston Committed by GitHub

Merge pull request #27 from fperrad/20160325_lint

more linting
parents 6830a659 0d9c3fe7
...@@ -234,7 +234,7 @@ static int newtcpforwarded(struct Channel * channel) { ...@@ -234,7 +234,7 @@ static int newtcpforwarded(struct Channel * channel) {
char *origaddr = NULL; char *origaddr = NULL;
unsigned int origport; unsigned int origport;
m_list_elem * iter = NULL; m_list_elem * iter = NULL;
struct TCPFwdEntry *fwd; struct TCPFwdEntry *fwd = NULL;
char portstring[NI_MAXSERV]; char portstring[NI_MAXSERV];
int err = SSH_OPEN_ADMINISTRATIVELY_PROHIBITED; int err = SSH_OPEN_ADMINISTRATIVELY_PROHIBITED;
...@@ -265,7 +265,7 @@ static int newtcpforwarded(struct Channel * channel) { ...@@ -265,7 +265,7 @@ static int newtcpforwarded(struct Channel * channel) {
} }
if (iter == NULL) { if (iter == NULL || fwd == NULL) {
/* We didn't request forwarding on that port */ /* We didn't request forwarding on that port */
cleantext(origaddr); cleantext(origaddr);
dropbear_log(LOG_INFO, "Server sent unrequested forward from \"%s:%d\"", dropbear_log(LOG_INFO, "Server sent unrequested forward from \"%s:%d\"",
......
...@@ -32,7 +32,6 @@ ...@@ -32,7 +32,6 @@
#include "circbuffer.h" #include "circbuffer.h"
#include "dbutil.h" #include "dbutil.h"
#include "channel.h" #include "channel.h"
#include "ssh.h"
#include "listener.h" #include "listener.h"
#include "runopts.h" #include "runopts.h"
#include "netio.h" #include "netio.h"
......
...@@ -634,7 +634,7 @@ static void make_connection_string(struct ChanSess *chansess) { ...@@ -634,7 +634,7 @@ static void make_connection_string(struct ChanSess *chansess) {
static int sessioncommand(struct Channel *channel, struct ChanSess *chansess, static int sessioncommand(struct Channel *channel, struct ChanSess *chansess,
int iscmd, int issubsys) { int iscmd, int issubsys) {
unsigned int cmdlen; unsigned int cmdlen = 0;
int ret; int ret;
TRACE(("enter sessioncommand")) TRACE(("enter sessioncommand"))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment