Fix a bug related to connection caching which could cause a crash after

a STAT command.

PR:		kern/153748 (different patch)
Submitted by:	Mark Johnston <markjdb@gmail.com>
MFC after:	2 weeks
This commit is contained in:
des 2011-01-17 17:25:46 +00:00
parent a0db96ac7c
commit ae98b060b9

View File

@ -1132,6 +1132,7 @@ ftp_request(struct url *url, const char *op, struct url_stat *us,
/* just a stat */
if (strcmp(op, "STAT") == 0) {
--conn->ref;
ftp_disconnect(conn);
return (FILE *)1; /* bogus return value */
}