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:
parent
a0db96ac7c
commit
ae98b060b9
@ -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 */
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user