mirror of
https://git.libssh.org/projects/libssh.git
synced 2025-11-30 13:01:23 +03:00
packet: Reformat ssh_packet_parse_type()
Signed-off-by: Andreas Schneider <asn@cryptomilk.org> Reviewed-by: Jakub Jelen <jjelen@redhat.com>
This commit is contained in:
@@ -515,8 +515,10 @@ SSH_PACKET_CALLBACK(ssh_packet_unimplemented){
|
|||||||
/** @internal
|
/** @internal
|
||||||
* @parse the "Type" header field of a packet and updates the session
|
* @parse the "Type" header field of a packet and updates the session
|
||||||
*/
|
*/
|
||||||
int ssh_packet_parse_type(ssh_session session) {
|
int ssh_packet_parse_type(ssh_session session)
|
||||||
|
{
|
||||||
memset(&session->in_packet, 0, sizeof(PACKET));
|
memset(&session->in_packet, 0, sizeof(PACKET));
|
||||||
|
|
||||||
if (session->in_buffer == NULL) {
|
if (session->in_buffer == NULL) {
|
||||||
return SSH_ERROR;
|
return SSH_ERROR;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user