]> asedeno.scripts.mit.edu Git - PuTTY.git/commit
Mark Wutzke points out that the comment in sk_proxy_set_frozen()
authorSimon Tatham <anakin@pobox.com>
Tue, 20 Jan 2004 19:30:41 +0000 (19:30 +0000)
committerSimon Tatham <anakin@pobox.com>
Tue, 20 Jan 2004 19:30:41 +0000 (19:30 +0000)
commit9601124a7af2bd46a873eb9f664704665e199446
treec3455725066948356f15dd733ece90e992381460
parent352ec6a48654eb5fdad45eaa294434dccb534752
Mark Wutzke points out that the comment in sk_proxy_set_frozen()
states that plug_receive() may recurse back into
sk_proxy_set_frozen() again. Therefore, bufchain_consume() should
have been called _before_ calling plug_receive(), to prevent an
infinite loop overflowing the stack. I can't immediately figure out
under what circumstances this might happen, but it seems an
obviously sensible precaution.

[originally from svn r3741]
proxy.c