summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
fb73b28)
we would return without first closing the directory handle we had used
as an argument.
git-svn-id: svn://svn.tartarus.org/sgt/putty@9913
cda61777-01e9-0310-a592-
d414129be87e
break;
tell_user(stderr, "scp: reading directory %s: %s\n",
fname, fxp_error());
break;
tell_user(stderr, "scp: reading directory %s: %s\n",
fname, fxp_error());
+
+ req = fxp_close_send(dirhandle);
+ pktin = sftp_wait_for_reply(req);
+ fxp_close_recv(pktin, req);
+
if (must_free_fname) sfree(fname);
sfree(ournames);
errs++;
if (must_free_fname) sfree(fname);
sfree(ournames);
errs++;
if (fxp_error_type() == SSH_FX_EOF)
break;
printf("%s: reading directory: %s\n", fname, fxp_error());
if (fxp_error_type() == SSH_FX_EOF)
break;
printf("%s: reading directory: %s\n", fname, fxp_error());
+
+ req = fxp_close_send(dirhandle);
+ pktin = sftp_wait_for_reply(req);
+ fxp_close_recv(pktin, req);
+
sfree(ournames);
return 0;
}
sfree(ournames);
return 0;
}