Bug#2482 REST in ASCII mode returns error but leaves session in inconsistent state --- modules/mod_xfer.c 2006-03-15 04:56:23.000000000 +0100 +++ modules/mod_xfer.c.oden 2006-09-13 10:37:38.000000000 +0200 @@ -1527,8 +1527,6 @@ return ERROR(cmd); } - session.restart_pos = pos; - /* Refuse the command if we're in ASCII mode, and the restart position * is anything other than zero. * @@ -1546,6 +1544,8 @@ return ERROR(cmd); } + session.restart_pos = pos; /* BLS moved from above this block */ + pr_response_add(R_350, "Restarting at %" PR_LU ". Send STORE or RETRIEVE to " "initiate transfer", (pr_off_t) pos); return HANDLED(cmd);