summaryrefslogtreecommitdiffhomepage
path: root/cli-service.c
diff options
context:
space:
mode:
Diffstat (limited to 'cli-service.c')
-rw-r--r--cli-service.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cli-service.c b/cli-service.c
index 8ba06c6..8fbbad4 100644
--- a/cli-service.c
+++ b/cli-service.c
@@ -31,7 +31,7 @@ void recv_msg_service_accept() {
servicename = buf_getstring(ses.payload, &len);
/* ssh-userauth */
- if (cli_ses.state = SERVICE_AUTH_REQ_SENT
+ if (cli_ses.state == SERVICE_AUTH_REQ_SENT
&& len == SSH_SERVICE_USERAUTH_LEN
&& strncmp(SSH_SERVICE_USERAUTH, servicename, len) == 0) {
@@ -42,7 +42,7 @@ void recv_msg_service_accept() {
}
/* ssh-connection */
- if (cli_ses.state = SERVICE_CONN_REQ_SENT
+ if (cli_ses.state == SERVICE_CONN_REQ_SENT
&& len == SSH_SERVICE_CONNECTION_LEN
&& strncmp(SSH_SERVICE_CONNECTION, servicename, len) == 0) {