sesman: missing else and remove some EOL whitespace
This commit is contained in:
@@ -277,7 +277,7 @@ scp_v0s_accept(struct SCP_CONNECTION* c, struct SCP_SESSION** s, int skipVchk)
|
||||
}
|
||||
}
|
||||
}
|
||||
if (code == SCP_GW_AUTHENTICATION)
|
||||
else if (code == SCP_GW_AUTHENTICATION)
|
||||
{
|
||||
/* g_writeln("Command is SCP_GW_AUTHENTICATION"); */
|
||||
session = scp_session_create();
|
||||
@@ -303,7 +303,7 @@ scp_v0s_accept(struct SCP_CONNECTION* c, struct SCP_SESSION** s, int skipVchk)
|
||||
|
||||
/* reading password */
|
||||
in_uint16_be(c->in_s, sz);
|
||||
buf[sz]='\0';
|
||||
buf[sz] = '\0';
|
||||
in_uint8a(c->in_s, buf, sz);
|
||||
/* g_writeln("Received password: %s",buf); */
|
||||
if (0 != scp_session_set_password(session, buf))
|
||||
|
||||
Reference in New Issue
Block a user