-
- Downloads
Make asynchronous agent_query() requests cancellable.
Now, instead of returning a boolean indicating whether the query has completed or is still pending, agent_query() returns NULL to indicate that the query _has_ completed, and if it hasn't, it returns a pointer to a context structure representing the pending query, so that the latter can be used to cancel the query if (for example) you later decide you need to free the thing its callback was using as a context. This should fix a potential race-condition segfault if you overload an agent forwarding channel and then close it abruptly. (Which nobody will be doing for sensible purposes, of course! But I ran across this while stress-testing other aspects of agent forwarding.)
Showing
- Recipe 6 additions, 6 deletionsRecipe
- aqsync.c 21 additions, 0 deletionsaqsync.c
- pageant.c 13 additions, 21 deletionspageant.c
- putty.h 20 additions, 5 deletionsputty.h
- ssh.c 41 additions, 12 deletionsssh.c
- unix/uxagentc.c 28 additions, 22 deletionsunix/uxagentc.c
- windows/winpgntc.c 11 additions, 5 deletionswindows/winpgntc.c
Loading
Please register or sign in to comment