diff options
author | Markus Friedl <markus@cvs.openbsd.org> | 2000-04-14 10:09:17 +0000 |
---|---|---|
committer | Markus Friedl <markus@cvs.openbsd.org> | 2000-04-14 10:09:17 +0000 |
commit | 33678fc8b299d55717f34c94bad03f629f7c89a2 (patch) | |
tree | ecf21f88b00230fd0520ef17404c5da1d97d2488 /usr.bin/ssh/packet.c | |
parent | d2b50e6f53eca572814633268b7f8a6b4b3d4b34 (diff) |
check payload for (illegal) extra data
Diffstat (limited to 'usr.bin/ssh/packet.c')
-rw-r--r-- | usr.bin/ssh/packet.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/usr.bin/ssh/packet.c b/usr.bin/ssh/packet.c index c6a462c045e..af8824f3641 100644 --- a/usr.bin/ssh/packet.c +++ b/usr.bin/ssh/packet.c @@ -17,7 +17,7 @@ */ #include "includes.h" -RCSID("$Id: packet.c,v 1.27 2000/04/12 09:39:10 markus Exp $"); +RCSID("$Id: packet.c,v 1.28 2000/04/14 10:09:15 markus Exp $"); #include "xmalloc.h" #include "buffer.h" @@ -1055,6 +1055,12 @@ packet_get_raw(int *length_ptr) return buffer_ptr(&incoming_packet); } +int +packet_remaining(void) +{ + return buffer_len(&incoming_packet); +} + /* * Returns a string from the packet data. The string is allocated using * xmalloc; it is the responsibility of the calling program to free it when |