String too long when connecting to SunOS ssh daemon
Hans Harder
hans at atbas.org
Mon Sep 15 22:21:22 WST 2014
I am getting a 'String too long' error whenever I try to connect to a SunOS
server with dbclient
In order to find out how much it is to long, I adapted 1 line in buffer.c
Now I get the message:"exited: String too long (2056 > 1400)"
That is a lot larger than 1400...
Any concerns before I increase the MAX_STRING_LEN to 2100 ?
Hans
--- a/buffer.c 2014-08-08 07:40:46.000000000 -0600
+++ b/buffer.c 2014-09-15 08:02:44.000000000 -0600
@@ -209,7 +209,7 @@ unsigned char* buf_getstring(buffer* buf
unsigned char* ret;
len = buf_getint(buf);
if (len > MAX_STRING_LEN) {
- dropbear_exit("String too long");
+ dropbear_exit("String too long (%d >
%d)",len,MAX_STRING_LEN);
}
if (retlen != NULL) {
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ucc.gu.uwa.edu.au/pipermail/dropbear/attachments/20140915/4ff91080/attachment.htm
More information about the Dropbear
mailing list