Commit 95d3dfc8 authored by Niels Möller's avatar Niels Möller
Browse files

(sftp_process_readdir): Clear errno

before calling readdir.

Rev: src/sftp/sftp-server.c:1.14
parent 792b2c0e
......@@ -525,6 +525,10 @@ sftp_process_readdir(struct sftp_ctx *ctx)
if (!sftp_get_handle_dir(ctx, &dir))
return sftp_bad_message(ctx);
/* readdir doesn't modify errno on EOF, so we need to clear it
* first. */
errno = 0;
if (!entry)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment