]> asedeno.scripts.mit.edu Git - PuTTY.git/commit
Remove all the "assert(len>0)" which forbade zero-length writes across the
authorJacob Nevins <jacobn@chiark.greenend.org.uk>
Sun, 12 Oct 2003 13:16:39 +0000 (13:16 +0000)
committerJacob Nevins <jacobn@chiark.greenend.org.uk>
Sun, 12 Oct 2003 13:16:39 +0000 (13:16 +0000)
commit8e2fd15bd598f3586a2eb36b460d21d77de94db4
tree80ee5c600727a8d814cb1f1dbf2eb5cca34aa3e4
parent5415873b3f0fa44da645a41eae6f51494d6edd7b
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.)

[originally from svn r3500]
[r1571 == fdbd6978016e9fd87db7b3bfc33ff0da8bd3eea9]
misc.c
plink.c
psftp.c
scp.c
terminal.c
unix/uxplink.c