summaryrefslogtreecommitdiffstats
path: root/sesman
diff options
context:
space:
mode:
authorJay Sorg <jay.sorg@gmail.com>2012-06-23 15:35:27 -0700
committerJay Sorg <jay.sorg@gmail.com>2012-06-23 15:35:27 -0700
commit0944509cf0dbe2a78922d8caaac58425653cf0c8 (patch)
tree705b6919d8e2413b8eb9b523d9695eaa5bb66491 /sesman
parent608101fbcad50b9d201577c02f2779947807738e (diff)
downloadxrdp-proprietary-0944509cf0dbe2a78922d8caaac58425653cf0c8.tar.gz
xrdp-proprietary-0944509cf0dbe2a78922d8caaac58425653cf0c8.zip
sesman: missing else and remove some EOL whitespace
Diffstat (limited to 'sesman')
-rw-r--r--sesman/libscp/libscp_v0.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/sesman/libscp/libscp_v0.c b/sesman/libscp/libscp_v0.c
index f92383d4..f8b5a9d6 100644
--- a/sesman/libscp/libscp_v0.c
+++ b/sesman/libscp/libscp_v0.c
@@ -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();
@@ -287,8 +287,8 @@ scp_v0s_accept(struct SCP_CONNECTION* c, struct SCP_SESSION** s, int skipVchk)
return SCP_SERVER_STATE_INTERNAL_ERR;
}
- scp_session_set_version(session, version);
- scp_session_set_type(session, SCP_GW_AUTHENTICATION);
+ scp_session_set_version(session, version);
+ scp_session_set_type(session, SCP_GW_AUTHENTICATION);
/* reading username */
in_uint16_be(c->in_s, sz);
buf[sz]='\0';
@@ -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))
@@ -311,7 +311,7 @@ scp_v0s_accept(struct SCP_CONNECTION* c, struct SCP_SESSION** s, int skipVchk)
scp_session_destroy(session);
/* until syslog merge log_message(s_log, LOG_LEVEL_WARNING, "[v0:%d] connection aborted: error setting password", __LINE__); */
return SCP_SERVER_STATE_INTERNAL_ERR;
- }
+ }
}
else
{
@@ -376,7 +376,7 @@ scp_v0s_replyauthentication(struct SCP_CONNECTION* c, unsigned short int value)
out_uint16_be(c->out_s, value); /* reply code */
out_uint16_be(c->out_s, 0); /* dummy data */
s_mark_end(c->out_s);
-
+
/* g_writeln("Total number of bytes that will be sent %d",c->out_s->end - c->out_s->data);*/
if (0 != scp_tcp_force_send(c->in_sck, c->out_s->data, c->out_s->end - c->out_s->data))
{