Remove all the "assert(len>0)" which forbade zero-length writes across the
authorjacob <jacob@cda61777-01e9-0310-a592-d414129be87e>
Sun, 12 Oct 2003 13:16:39 +0000 (13:16 +0000)
committerjacob <jacob@cda61777-01e9-0310-a592-d414129be87e>
Sun, 12 Oct 2003 13:16:39 +0000 (13:16 +0000)
commitbfa5400d3e166e1acc25dbe0b7f1fdf74b272568
tree80ee5c600727a8d814cb1f1dbf2eb5cca34aa3e4
parentb8a98e2597d1db9b40442c9a2aa6474ecf54353d
Remove all the "assert(len>0)" which forbade zero-length writes across the
from_backend() interface, after having made all implementations safe against
being called with len==0 and possibly-NULL/undefined "data".

(This includes making misc.c:bufchain_add() more robust in this area.)

Assertion was originally added 2002-03-01; e.g., see plink.c:1.53 [r1571].

I believe this now shouldn't break anything.

This should hopefully make `ppk-empty-comment' finally GO AWAY. (Tested
with Unix PuTTY.)

git-svn-id: svn://svn.tartarus.org/sgt/putty@3500 cda61777-01e9-0310-a592-d414129be87e
misc.c
plink.c
psftp.c
scp.c
terminal.c
unix/uxplink.c