Skip Menu |
 

From: ghudson@mit.edu
Subject: SVN Commit

user() was replying to the user command and then calling login(),
which could send a continuation reply if it fails to chdir to the
user's homedir. Continuation replies must come before the actual
reply; the mis-ordering was causing ftp and ftpd to deadlock. To fix
the bug, invoke login() before reply() so that the continuation reply
comes first.


https://github.com/krb5/krb5/commit/c7d9d2c14150ab8df01c67fce258a27f6103eac4
Commit By: ghudson
Revision: 22519
Changed Files:
U trunk/src/appl/gssftp/ftpd/ftpd.c
From: tlyu@mit.edu
Subject: SVN Commit

pull up r22519 from trunk

------------------------------------------------------------------------
r22519 | ghudson | 2009-08-12 14:53:47 -0400 (Wed, 12 Aug 2009) | 12 lines

ticket: 6543
subject: Reply message ordering bug in ftpd
tags: pullup
target_version: 1.7

user() was replying to the user command and then calling login(),
which could send a continuation reply if it fails to chdir to the
user's homedir. Continuation replies must come before the actual
reply; the mis-ordering was causing ftp and ftpd to deadlock. To fix
the bug, invoke login() before reply() so that the continuation reply
comes first.

https://github.com/krb5/krb5/commit/abc8b7500aa4938b7ebd98468a72c2c6bbe3ac54
Commit By: tlyu
Revision: 22812
Changed Files:
U branches/krb5-1-7/src/appl/gssftp/ftpd/ftpd.c