Skip to content
Snippets Groups Projects
Commit 5ed00175 authored by rswindell's avatar rswindell
Browse files

Fixed file pointer leak in ftpalias().

parent 3cdeeb84
Branches
Tags
No related merge requests found
......@@ -2180,8 +2180,10 @@ static BOOL ftpalias(char* fullalias, char* filename, user_t* user, int* curdir)
fname=p+1;
}
if(filename==NULL /* directory */ && *fname /* filename specified */)
if(filename==NULL /* directory */ && *fname /* filename specified */) {
fclose(fp);
return(FALSE);
}
while(!feof(fp)) {
if(!fgets(line,sizeof(line),fp))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment