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:
committed by
Andreas Schneider
parent
2f1f662d46
commit
553eab748a
@@ -71,6 +71,9 @@ static ssh_message ssh_message_new(ssh_session session)
|
|||||||
}
|
}
|
||||||
msg->session = session;
|
msg->session = session;
|
||||||
|
|
||||||
|
/* Set states explicitly */
|
||||||
|
msg->auth_request.signature_state = SSH_PUBLICKEY_STATE_NONE;
|
||||||
|
|
||||||
return msg;
|
return msg;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user