1
0
mirror of https://github.com/danog/phpseclib.git synced 2024-12-02 17:52:59 +01:00

Remove unused fields from pack()

This commit is contained in:
terrafrost 2012-11-27 14:38:30 -06:00
parent 346bc5dcc8
commit ff94576315

View File

@ -1474,7 +1474,7 @@ class Net_SSH2 {
} }
if (!isset($password)) { if (!isset($password)) {
$packet = pack('CNa*Na*Na*CNa*', $packet = pack('CNa*Na*Na*',
NET_SSH2_MSG_USERAUTH_REQUEST, strlen($username), $username, strlen('ssh-connection'), 'ssh-connection', NET_SSH2_MSG_USERAUTH_REQUEST, strlen($username), $username, strlen('ssh-connection'), 'ssh-connection',
strlen('none'), 'none' strlen('none'), 'none'
); );