From: djm Date: Fri, 21 Jan 2022 06:58:06 +0000 (+0000) Subject: correct comment and use local variable instead of long indirection; X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=987a401300ef9749aa581878890f4ecd1d8882fa;p=openbsd correct comment and use local variable instead of long indirection; spotted by dtucker@ --- diff --git a/usr.bin/ssh/packet.c b/usr.bin/ssh/packet.c index fa66b6dd426..96b68289ee6 100644 --- a/usr.bin/ssh/packet.c +++ b/usr.bin/ssh/packet.c @@ -1,4 +1,4 @@ -/* $OpenBSD: packet.c,v 1.305 2022/01/17 22:56:04 djm Exp $ */ +/* $OpenBSD: packet.c,v 1.306 2022/01/21 06:58:06 djm Exp $ */ /* * Author: Tatu Ylonen * Copyright (c) 1995 Tatu Ylonen , Espoo, Finland @@ -1739,10 +1739,9 @@ ssh_packet_read_poll_seqnr(struct ssh *ssh, u_char *typep, u_int32_t *seqnr_p) } /* - * Buffers the given amount of input characters. This is intended to be used - * together with packet_read_poll. + * Buffers the supplied input data. This is intended to be used together + * with packet_read_poll(). */ - int ssh_packet_process_incoming(struct ssh *ssh, const char *buf, u_int len) { @@ -1758,7 +1757,7 @@ ssh_packet_process_incoming(struct ssh *ssh, const char *buf, u_int len) state->packet_discard -= len; return 0; } - if ((r = sshbuf_put(ssh->state->input, buf, len)) != 0) + if ((r = sshbuf_put(state->input, buf, len)) != 0) return r; return 0;