Bugs in the CE sample LSP
I've spent the last few days looking at LSPs and have found
some errors in the sample.
These are:
1. Passing
the wrong WSAPROTOCOLINFO to the next person in the chain:
Symptom: WSPSocket
fails when layered over another LSP.
Fix: DCATALOG::FindNextProviderInChain needs to start by setting *BaseProviderCatalogEntry=NULL
2. Assuming *lpErrno == 0:
Symptom: ssl sockets
(created via SO_SECURE) stop working when layered over ssllsp
Fix: WSPSelect needs
to start by setting *lpErrno=NO_ERROR.
3. Installing
incorrectly:
I plan on publishing another post on this shortly.