Subject: [libssh2] #179: userauth_hostbased_fromfile() packet too short

[libssh2] #179: userauth_hostbased_fromfile() packet too short

From: libssh2 Trac <trac_at_libssh2.stuge.se>
Date: Sat, 19 Jun 2010 16:19:59 -0000

#179: userauth_hostbased_fromfile() packet too short
------------------------------+---------------------------------------------
 Reporter: tj@… | Owner:
     Type: defect | Status: new
 Priority: normal | Milestone: 1.2.6
Component: API | Version: 1.2.6
 Keywords: | Blocks:
Blocked By: |
------------------------------+---------------------------------------------
 The packet length calculated in src/userauth.c's
 userauth_hostbased_fromfile() function is too short by 4 bytes; it forgets
 to add four bytes for the length of the hostname. This causes hostbased
 authentication to fail, since the server will read junk data.

 The attached patch corrects the issue for me (verified against proftpd's
 mod_sftp module).

-- 
Ticket URL: <http://trac.libssh2.org/ticket/179>
libssh2 <http://trac.libssh2.org/>
C library for writing portable SSH2 clients
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
Received on 2010-06-19