comparison packet.c @ 1632:c4bf28ccab97

packet: remove stale comment about "packet_type" (#63) clean up after 7f15910541 Signed-off-by: Konstantin Demin <[email protected]>
author Konstantin Demin <rockdrilla@gmail.com>
date Wed, 20 Mar 2019 17:33:15 +0300
parents a3bb8f8949de
children 3a97f14c0235
comparison
equal deleted inserted replaced
1631:292f79307600 1632:c4bf28ccab97
108 _Static_assert(0, "No fuzzing code for no-writev writes"); 108 _Static_assert(0, "No fuzzing code for no-writev writes");
109 #endif 109 #endif
110 /* Get the next buffer in the queue of encrypted packets to write*/ 110 /* Get the next buffer in the queue of encrypted packets to write*/
111 writebuf = (buffer*)examine(&ses.writequeue); 111 writebuf = (buffer*)examine(&ses.writequeue);
112 112
113 /* The last byte of the buffer is not to be transmitted, but is
114 * a cleartext packet_type indicator */
115 len = writebuf->len - writebuf->pos; 113 len = writebuf->len - writebuf->pos;
116 dropbear_assert(len > 0); 114 dropbear_assert(len > 0);
117 /* Try to write as much as possible */ 115 /* Try to write as much as possible */
118 written = write(ses.sock_out, buf_getptr(writebuf, len), len); 116 written = write(ses.sock_out, buf_getptr(writebuf, len), len);
119 117