1
0
mirror of https://git.libssh.org/projects/libssh.git synced 2025-11-30 13:01:23 +03:00

messages: Set signature state explicitly

In ssh_message_new(), initialize msg->auth_request.signature_state
explicitly for better readability.

Fixes T194

Signed-off-by: Anderson Toshiyuki Sasaki <ansasaki@redhat.com>
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
This commit is contained in:
Anderson Toshiyuki Sasaki
2019-11-05 14:16:06 +01:00
committed by Andreas Schneider
parent 2f1f662d46
commit 553eab748a

View File

@@ -71,6 +71,9 @@ static ssh_message ssh_message_new(ssh_session session)
}
msg->session = session;
/* Set states explicitly */
msg->auth_request.signature_state = SSH_PUBLICKEY_STATE_NONE;
return msg;
}