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:
Dag-Erling Smørgrav 2011-01-17 17:25:46 +00:00
parent 81eee0ebf8
commit e8eaf30078

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 */
}